Skip to content
Businesses

Create Businessexperimental

POST/api/businesses

This endpoint allows you to create a new Business. If accountId is not provided when creating a Business, then a new org account will be created and associated to the Business.

Request body

  • accountIdoptional string
    The Centrapay accountId.
  • locationrequired location
    The physical address of the business.
  • nzbnrequired string
    The unique NZBN identifier.
  • taxNumberoptional object
    The value-added tax configuration.
  • testoptional boolean
    The created Centrapay org account will have the test flag.

Responses

Request
curl -X POST https://service.centrapay.com/api/businesses \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"location": {
"city": "Wellington",
"country": "NZ",
"postCode": "6011",
"state": "Wellington",
"street": "1 Head Office Way"
},
"nzbn": "9429046246448",
"taxNumber": {
"type": "nz-gst",
"value": "123-456-789"
}
}'