Skip to main content
POST
/
suppliers
Create supplier
curl --request POST \
  --url https://api.piriod.com/suppliers/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'x-simple-workspace: <x-simple-workspace>' \
  --data '
{
  "name": "<string>",
  "country": "<string>",
  "tax_id": "<string>",
  "state": 123,
  "currency": "USD",
  "address": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "website": "<string>",
  "tax_settings": {}
}
'
{
  "name": "<string>",
  "country": "<string>",
  "id": 123,
  "tax_id": "<string>",
  "state": 123,
  "currency": "USD",
  "address": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "website": "<string>",
  "tax_settings": {},
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://piriod-d406ac55.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use header Authorization: Token <api_token>. API tokens are obtained from the Piriod dashboard.

Headers

x-simple-workspace
string
required

Workspace (account) identifier. Required for every request.

x-piriod-test-mode
boolean
default:false

Whether to operate against test-mode data. Defaults to false.

Body

application/json
name
string
required
Maximum string length: 64
country
string
required

Country ID.

tax_id
string | null
Maximum string length: 32
state
integer | null
currency
string
default:USD

ISO currency code.

address
string | null
Maximum string length: 64
email
string<email> | null
phone
string | null
Maximum string length: 16
website
string<uri> | null
tax_settings
object

Country-specific tax-agency configuration.

Response

Supplier created.

name
string
required
Maximum string length: 64
country
string
required

Country ID.

id
integer
read-only
tax_id
string | null
Maximum string length: 32
state
integer | null
currency
string
default:USD

ISO currency code.

address
string | null
Maximum string length: 64
email
string<email> | null
phone
string | null
Maximum string length: 16
website
string<uri> | null
tax_settings
object

Country-specific tax-agency configuration.

created
string<date-time>
read-only
updated
string<date-time>
read-only