Add a new payer
x-ms-visibility: "important"
Send a request to add a payer details specified in the request body. A payer can be connected to one or several drivers and/or sites.
application/json
Request Body required
Payer object to be added
name string
email string
invoiceReference string
invoiceMessage string
streetAddress string
city string
postalCode string
country string
driverIds int64[]
siteIds int64[]
language string
Responses
- 200
- 400
- 401
Returns the new payer that was added succesfully
application/json
Schema
Example (from schema)
Schema
id int64
name string
email string
invoiceReference string
invoiceMessage string
streetAddress string
city string
postalCode string
country string
lastUpdated date-time
drivers object[]
sites object[]
language string
{
"id": 0,
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"lastUpdated": "2025-04-07T05:28:14.574Z",
"drivers": [
{
"id": 0,
"name": "string"
}
],
"sites": [
{
"id": 0,
"groupName": "string"
}
],
"language": "string"
}
Errors in the body request
text/plain
Schema
Schema
string
Customer not found or not authorised
POST /invoicing/add/payer
Authorization
name: codetype: apiKeyin: query
Request
Request
curl / cURL
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
python / requests
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
go / native
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
nodejs / axios
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
php / cURL
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
java / OkHttp
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://api.emabler.net/api/invoicing/add/payer' \
-H 'Content-Type: text/plain' \
-H 'Accept: text/plain' \
--data-raw '{
"name": "string",
"email": "string",
"invoiceReference": "string",
"invoiceMessage": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"driverIds": [
0
],
"siteIds": [
0
],
"language": "string"
}'