Versions Compared

Key

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

...

...

...

The method for completing an invoice payment with HOLD type

Tip
iconfalse
titleURIURL

POST api/invoicer/payments/complete


ЗапитRequest:

КлючKeyОписDescriptionТипTypeОбов'язковістьMandatoryПрикладExample
params



sessionIdid сесії клієнта

client session id 

string, uuidтак

yes

"00684a7f-3d5c-43f4-b4d1-ea994226be9c"
paymentIdid платежу

payment id 

string, uuidтак

yes

"08eff720-9432-4951-a698-94e24db59e66"
invoiceIdid інвойсу

invoice id 

string, uuidтак

yes

"48cae638-2f4b-434c-aafa-a4b9ced4b486"
amountсума пiдтвердження (у копійках

the amount of confirmation (in kopecks)

integerнi, лише для ситуацiй коли треба зменшити суму пiдтвердження 

no, only for situations where the amount of confirmation needs to be reduced 

1200


Code Block
languagejs
themeConfluence
titleПриклад запитуExample of a query
linenumberstrue
collapsetrue
{
   "params": {
      "sessionId": "000ab70b-ef76-4385-a0f5-a98693c716f1",
      "paymentId": "08eff720-9432-4951-a698-94e24db59e66",
      "invoiceId": "48cae638-2f4b-434c-aafa-a4b9ced4b486",
	  "amount": 1200
   }
}



ВідповідьReply:

КлючKey
ОписDescription
ТипType
ПрикладExample
status

СтатусStatus. 0 - помилкаerror, 1 - успіхsuccess

integer

1

data


paymentId

payment id платежуstring, uuid
"08eff720-9432-4951-a698-94e24db59e66"

...

Code Block
languagejs
themeConfluence
titleПриклад відповідіExample of an answer
linenumberstrue
collapsetrue
{
    "status": 1,
    "data": {
        "paymentId": "08eff720-9432-4951-a698-94e24db59e66"
    }
}

...