Skip to main content
POST
/
v1
/
public
/
purchase-orders
Create Purchase Order
curl --request POST \
  --url https://api.sanka.com/v1/public/purchase-orders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "external_id": "<string>",
  "contact_id": "<string>",
  "contact_external_id": "<string>",
  "company_id": "<string>",
  "company_external_id": "<string>",
  "date": "<string>",
  "status": "<string>",
  "currency": "<string>",
  "notes": "<string>",
  "tax_rate": 123,
  "tax_option": "<string>",
  "total_price": 123,
  "total_price_without_tax": 123
}
'
{
  "ok": true,
  "status": "<string>",
  "external_id": "<string>",
  "purchase_order_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
external_id
string | null
contact_id
string | null
contact_external_id
string | null
company_id
string | null
company_external_id
string | null
date
string | null
status
string | null
currency
string | null
notes
string | null
tax_rate
number | null
tax_option
string | null
total_price
number | null
total_price_without_tax
number | null

Response

OK

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