Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Метод для оновлення певних даних по інвойсуA method for updating certain invoice data.

Tip

URI

POST api/invoicer/invoices/update

ЗапитRequest:

Ключ

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\"}"

 

Expand
titleПриклад запитуExample of a query
Code Block
languagejson
{
   "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

status

Статус

Status. 0 -

помилка

error, 1 -

успіх

success

integer

1

data

 

 

 

id

id інвойсу

Invoice ID

string, uuid

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

Expand
titleПриклад відповідіExample of an answer
Code Block
languagejson
{
    "status": 1,
    "data": {
        "id": "edacfce8-eb97-4f4f-8fa2-0fb044932ac3"
    }
}

...