|
PhoneNumber1
|
The primary phone number (10-digits max, no formatting) of the customer to whom the invoice is being sent.
Example: 3055551212
</td><td>
Optional
</td></tr><tr><td>
PhoneNumber2
</td><td>
The secondary phone number (10-digits max, no formatting) of the customer to whom the invoice is being sent.
Example: 3055551212
</td><td>
Optional
</td></tr><tr><td>
EmailAddress
</td><td>
The email address of the customer to whom the invoice is being sent.
Example: [xxx@xxxx.xxx](mailto:xxx@xxxx.xxx)
</td><td>
Optional
</td></tr><tr><td>
TextURL
</td><td>
The link to the text used by the company generating the external invoice. Used for tracking.
</td><td>
Optional
</td></tr><tr><td>
EmailURL
</td><td>
The link to the email used by the company generating the external invoice. Used for tracking.
</td><td>
Optional
</td></tr><tr><td>
LogoURL
</td><td>
The link to the logo of the company generating the external invoice.
</td><td>
Optional
</td></tr><tr><td>
DueDate
</td><td>
The due date for the invoice to be paid.
</td><td>
Optional
</td></tr><tr><td>
HexadecimalColorCode
</td><td>
The hexadecimal code for the color that the background of the invoice will be set to.
Example: #ffffff
</td><td>
Optional
</td></tr><tr><td>
SMSOverrideMessage
</td><td>
Text that overrides the message template that the account defaults to, if so desired.
</td><td>
Optional
</td></tr><tr><td>
EmailAdditionalBody
</td><td>
Additional text for email invoices can be established here.
</td><td>
Optional
</td></tr></tbody></table>
Sample Code
{
"MasterSiteExternalID": "092934728",
"SiteExternalID": "847377273",
"CustomerExternalID: "",
"StatementID": "",
"RecordType": "New",
"CadenceType": "",
"Balance": "20.00",
"LocationDescription": "",
"FirstName": "John",
"LastName": "Smith",
"PhoneNumber1": "3055551212",
"PhoneNumber2": "",
"EmailAddress": "",
"TextURL": "",
"EmailURL": "",
"LogoURL": "",
"DueDate": "",
"HexadecimalColorCode": "",
"SMSOverrideMessage": "",
"EmailAdditionalBody": ""
}
curl --location 'https://rest.everyware.com/InvoicingOnly/SendInvoice' \
--header 'Authorization: Basic [xxx]' \
--header 'Content-Type: application/json' \
--data-raw '{
"MasterSiteExternalID": "092934728",
"SiteExternalID": "847377273",
"CustomerExternalID: "",
"StatementID": "",
"RecordType": "New",
"CadenceType": "",
"Balance": "20.00",
"LocationDescription": "",
"FirstName": "John",
"LastName": "Smith",
"PhoneNumber1": "3055551212",
"PhoneNumber2": "",
"EmailAddress": "",
"TextURL": "",
"EmailURL": "",
"LogoURL": "",
"DueDate": "",
"HexadecimalColorCode": "",
"SMSOverrideMessage": "",
"EmailAdditionalBody": ""
}'
{
"OrderNumber": null,
"SMSID": null,
"IsSuccess": true,
"Message": "Invoice has successfully been added to the system.",
"Data": null
}
|