Block customer by card number
POST {{AppUrl}}/api/v1/carrier/customer/block-by-card
Introduction
Block a customer their travel rights to prevent this customer from traveling.
Structure
Item | Type | Plurality | Options | Required | Description | Validation |
---|---|---|---|---|---|---|
card_number | integer | 1 | yes | Card number of the customer you want to block. | ||
comment | varchar(255) | 1 | no | Reason of blocking. |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
card-number | null |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string |
RESPONSES
status: OK
{"data":{"id":54,"addresses":[{"type":"home","different_from_home":1,"label":null,"street":"van Salmring","number":"2382","addition":"a","postcode":"6871ZM","city":"Plasmolen"},{"type":"post","different_from_home":1,"label":null,"street":"Abdiweg","number":"3131","addition":"b","postcode":"7261CN","city":"Bolsward"},{"type":"billing","different_from_home":0,"label":null,"street":null,"number":null,"addition":null,"postcode":null,"city":null},{"type":"custom","different_from_home":0,"label":"Aliquid dolorem","street":"Duboisboulevard","number":"2560","addition":"b","postcode":"2922AG","city":"Heusden"}]}}