Update invoice data (Invoice update)

A method for updating certain invoice data.

URI

POST api/invoicer/invoices/update

Request:

Key

Description

Type

Mandatory

Example

Key

Description

Type

Mandatory

Example

params

 

 

 

 

sessionId

client session id

string, uuid

yes

"00684a7f-3d5c-43f4-b4d1-ea994226be9c"

id

invoice id

string, uuid

yes

"6e391161-94ff-41a3-bd22-c6d77509bff6"

data

 

 

 

 

cardTo{}.pan

pan cards

string

no

"4134170000010886"

cardTo{}.id

recipient card id

string, uuid

no

"b8220f46-8c28-4068-9488-2e1b37359b06"

tag

field for grouping invoices

strring

no

"Клиєнт 1"

redirectUrl

redicrecting address

string

no

"https://uapay.ua"

callbackUrl

callback address

string

no

"http://ptsv2.com/t/test_server/post"

extraInfo

additional information

json

no

"{\"base\":true, \"origin\":\"invoicer\",\"email\":\"test@ukr.net\"}"

 

1 2 3 4 5 6 7 8 9 10 11 12 13 { "params": { "sessionId": "00684a7f-3d5c-43f4-b4d1-ea994226be9c", "id": "065f927e-f78f-4d9a-ad07-cef58c16ca96" }, "data": { "redirectUrl": "", "tag": "Клиент 1", "callbackUrl": "http://ptsv2.com/t/test_server/post", "cardToId": "c9cc0a38-c5f5-429d-89d6-e4be3656560c", "extraInfo": "{\"base\":true,\"origin\":\"invoicer\",\"email\":\"test@ukr.net\"}" } }

Reply:

Key

Description

Type

Example

Key

Description

Type

Example

status

Status. 0 - error, 1 - success

integer

1

data

 

 

 

id

Invoice ID

string, uuid

"edacfce8-eb97-4f4f-8fa2-0fb044932ac3"

1 2 3 4 5 6 { "status": 1, "data": { "id": "edacfce8-eb97-4f4f-8fa2-0fb044932ac3" } }