API docs

Create billing entity

POST
/billing-entity

Create a new billing entity using the billing address information.

Request Body

application/json
  1. body
apiKey*string

API key of your account

parentEntityId?number

Parent billing entity id. If you leave this empty, you create a parent billing entity.

firstName*string
lastName*string
companyName*string
addressLine1*string

Street and number or POBox

addressLine2?string

Building, apartment, other

zipCode*string
state?string
city?string
countryCode*string

ISO Code 2, e.g "US", "NL"

vatNumber?string
chamberOfCommerce?string
phoneNumber?string
emailAddresses*array<string>

Array of at least one email address

Response Body

Created

application/json
  1. response
id?number
Example Request
curl -X POST 'https://test.www.peecho.com/rest/v3/billing-entity' \  -H 'Content-Type: application/json' \  -d '{  "apiKey": "368b0b2ee9ff75796d64d4f40798b89ed9292905",  "parentEntityId": 5,  "firstName": "Test",  "lastName": "Test",  "companyName": "Test",  "addressLine1": "Main St No 1",  "addressLine2": "Ap 15",  "zipCode": "123456",  "city": "Test",  "state": "AZ",  "countryCode": "US",  "vatNumber": "98765",  "chamberOfCommerce": "888",  "emailAddresses": [    "test@gmail.com",    "test2@gmail.com"  ],  "phoneNumber": "0654198826"}'
Example Response
{  "id": 8}