Send dunning again
Send dunning again
API allows to send issued dunning again. Request JSON consists of delivery method only.
1 | POST /dunnings/{number}/send
|
If dunning doesn’t exist, the API will return HTTP status code 404 Not Found.
Request object cannot be empty. It must contain at least one valid sending methods, i.e. paper or email and optional copy methods.
Request
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | { "paper": {}, "email": [ { "address": "recipient@sendregning.no", "htmlContent": "custommessage" } ], "sms": [ { "mobileNumber": "47111111", "message": "smstext1" }, { "mobileNumber": "90091705", "message": "smstext2" } ], "copy": { "email": [ { "address": "copy@sendregning.no", "htmlContent": "copycustommessage" }, { "address": "copy2@sendregning.no", "htmlContent": "copy2custommessage" } ] } } |
Response
HTTP/1.1 200 OK
Name | Description | Required | Type | Limitation | ||
---|---|---|---|---|---|---|
paper | Leave object empty to send to address specified on recipient. If address is specified original invoice will be updated with it. | conditioned | Object | |||
address1 | conditioned | String | 64 characters | |||
address2 | conditioned | String | 64 characters | |||
zip | If paper object is not empty, then this field is mandatory. |
conditioned | String | 8 characters | ||
city | If paper object is not empty, then this field is mandatory. |
conditioned | String | 64 characters | ||
country | If paper object is not empty, then this field is mandatory. |
conditioned | String | 64 characters | ||
List of emails objects | conditioned | Array | ||||
address | Email address of the receiver of this invoice. | yes | String | 64 characters | ||
htmlContent | Message that will be used in the email sent. | String | 120 characters | |||
sms | List of sms objects | Array | ||||
mobileNumber | A valid mobileNumber to send the invoice to. | yes | String | 8 characters | ||
message | A message that will be added along the link. | yes | String | 140 characters | ||
copy | Copy shipment options | Object | ||||
List of emails objects | Array | |||||
address | Email address of the receiver of this invoice. | yes | String | 64 characters | ||
htmlContent | Message that will be used in the email sent. | String | 120 characters |