Enabling trade via a modern invoice presentation API
http://api.trade-enabler-site.com/public/api/{version}/user/login
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version |
{ | |
"email": string, | User email |
"password": string | User password |
} |
{ | |
"access_token": string, | |
"grace_period": integer, | |
"refresh_token": string | |
} |
Code | Message | Description |
---|---|---|
200 | Call Success. | The token will be empty if there is a wrong password |
500 | Call failed | An exception has happened. This is not a wrong password indication |
http://api.trade-enabler-site.com/public/api/{version}/user/reset/
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version |
{ | |
"newPassword": string, | The new Password |
"oldPassword": string, | The current Password |
"repeatPassword": string | The new Password again |
} |
{ | |
"response_message": string | |
} |
Code | Message | Description |
---|---|---|
200 | Call Success. | Password reset successful. Please check your email. |
500 | Call failed | An exception has happened. This is not a wrong password indication |
http://api.trade-enabler-site.com/public/api/{version}/user/reset/
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version |
{ | |
"email": string | User email |
} |
{ | |
"response_message": string | |
} |
Code | Message | Description |
---|---|---|
200 | Call Success. | Password reset successful. Please check your email. |
500 | Call failed | An exception has happened. This is not a wrong password indication |
http://api.trade-enabler-site.compublic/api/{version}/invoices
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version |
http://api.trade-enabler-site.compublic/api/{version}/invoices/presented
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version |
http://api.trade-enabler-site.compublic/api/{version}/invoices/received
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version |
http://api.trade-enabler-site.compublic/api/{version}/invoices/{invoice_id}
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version | |
invoice_id | string | The Invoice Id |
http://api.trade-enabler-site.compublic/api/{version}/invoices/file/{invoice_file_id}/
Parameter | Type | Optional | Description |
---|---|---|---|
version | Version | Api version | |
invoice_file_id | string | Invoice identifier |
{ | |
"file": string | The file as multipart form/data |
} |
{ | |
"response_message": string | |
} |
Code | Message | Description |
---|---|---|
200 | Invoice Created. | The Invoice has been created and an email has been send to the receiver with the invoice link. |
500 | Call failed | An exception has happened. This is not a wrong password indication |
{ | |
"amount": integer, | Invoice amount |
"ccy": string, | the curreny code e.g EUR or USD |
"company": string, | Needs Description - The company |
"customer_id": string, | Needs Description - The customer |
"date": string, | Invoice date |
"due_date": string, | Invoice due date |
"file_attachment_id": string, | File attachemnet id |
"invoice_number": string, | The invoice number |
"payment_id": string, | Needs Description -The payment ID |
"receiver_company": string, | The company name of the payee |
"receiver_customer_id": string, | Needs Description - The customer id in TSG Core ? |
"receiver_email": string, | The email of the payee |
"receiver_wpy_id": string, | Needs Description - The WPAY ID of the payee |
"ref": string, | Invoice reference |
"status": string, | Email address of the user |
"wpy_id": string | Needs Description - The WPAY ID of ... |
} |
string |
VN
V\d+