Skip to main content
POST
/
2023-11
/
admin
/
orders
/
{id}
/
payments
Add Payment
curl --request POST \
  --url https://api-staging.genuka.com/2023-11/admin/orders/{id}/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
"{\n  \"amount\": 160,\n  \"method\": \"bank\", // Comming from treasory account\n  \"treasury_account_id\": \"01k1amyq08htzkeg79xd7f9pct\" // Comming from treasory account\n}"
'
{
  "code": 200,
  "message": "Payment added successfully",
  "status": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-company
string
Example:

"{{companyId}}"

Path Parameters

id
string
required

Response

200 OK

code
number
Example:

200

message
string
Example:

"Payment added successfully"

status
string
Example:

"success"