Skip to main content
POST
/
v1
/
public
/
payments
Create Payment
curl --request POST \
  --url https://api.sanka.com/v1/public/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "externalId": "<string>",
  "contactId": "<string>",
  "contactExternalId": "<string>",
  "companyId": "<string>",
  "companyExternalId": "<string>",
  "startDate": "<string>",
  "status": "<string>",
  "currency": "<string>",
  "totalPrice": 123,
  "totalPriceWithoutTax": 123,
  "entryType": "<string>",
  "notes": "<string>"
}
'
{
  "ok": true,
  "status": "<string>",
  "external_id": "<string>",
  "payment_id": "<string>",
  "ctx_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
externalId
string | null
contactId
string | null
contactExternalId
string | null
companyId
string | null
companyExternalId
string | null
startDate
string | null
status
string | null
currency
string | null
totalPrice
number | null
totalPriceWithoutTax
number | null
entryType
string | null
notes
string | null

Response

OK

ok
boolean
required
status
string
required
external_id
string | null
payment_id
string | null
ctx_id
string | null