Create a single sender
This adds a new sender, assuming the identifier and scheme don't exist yet.
name, iso6523_scheme, and iso6523_identifier must be present in the data.
website and email are optional, but if present, must be valid.
Method and endpoint:
POST https://peppol-senders.nl/api/senders/
Headers:
Authorization: Token <your auth token>
Accept: application/json
Content-Type: application/json
Success example
Post Data:
{
"email": "finance@example.net",
"iso6523_identifier": "00000001",
"iso6523_scheme": "0106",
"name": "Example Company",
"website": "https://example.net"
}
Response code: 201
Response data:
{
"api_url": "https://peppol-senders.nl/api/senders/5025/",
"created_on": "2018-11-28T18:48:57.029642Z",
"email": "finance@example.net",
"email_verified": true,
"id": 5025,
"iso6523_identifier": "00000001",
"iso6523_scheme": 106,
"iso6523_verified": true,
"name": "Example Company",
"updated_on": "2018-11-28T18:48:57.029666Z",
"website": "https://example.net"
}
Failure example
Post data:
{
"iso6523_identifier": "00000002",
"iso6523_scheme": "0106",
"name": "Example company 2"
}
Response code: 400
Response data:
{
"iso6523_identifier": "This identifier has already been registered"
}