Through our Integration Documentation, you will notice that we only include an option to add all the information together in one quick API endpoint: https://app.trustev.com/api/v2.0/case. However, we also allow for a number of endpoints should you wish to add details separately to a Trustev Case or update details at a later stage in the order:
Please note, should you simply wish to update the entire Trustev Case, you may still use the same endpoint: https://app.trustev.com/api/v2.0/case, but ensure you use HTTP PUT method for this, as an error will be returned if you attempt to POST – Our system will assume you are attempting to duplicate a Trustev Case.
Action | Endpoint |
---|---|
Add a Customer | https://app.trustev.com/api/v2.0/case/CASE_ID/customer |
Update a Customer | https://app.trustev.com/api/v2.0/case/CASE_ID/customer/CUSTOMER_ID |
Add a new Customer Address | https://app.trustev.com/api/v2.0/case/CASE_ID/customer/CUSTOMER_ID/Address |
Update a Customer Address | https://app.trustev.com/api/v2.0/case/CASE_ID/customer/CUSTOMER_ID/Address/ADDRESS_ID |
Add/Update a Transaction | https://app.trustev.com/api/v2.0/case/CASE_ID/transaction |
Add Item to a Transaction | https://app.trustev.com/api/v2.0/case/CASE_ID/transaction/item |
Update Item in a Transaction | https://app.trustev.com/api/v2.0/case/CASE_ID/transaction/item/ITEM_ID |
Add Transaction Address | https://app.trustev.com/api/v2.0/case/CASE_ID/transaction/address |
Update Transaction Address | https://app.trustev.com/api/v2.0/case/CASE_ID/transaction/address/ADDRESS_ID |
Add a Status | https://app.trustev.com/api/v2.0/case/CASE_ID/status |
Add/Update a Payment | https://app.trustev.com/api/v2.0/case/CASE_ID/payment |
Add Payment Attribute | https://app.trustev.com/api/v2.0/case/CASE_ID/payment/attribute |
Update Payment Attribute | https://app.trustev.com/api/v2.0/case/CASE_ID/paymant/attribute/PAYMENT_ID |
All these above endpoints assume that you have already added a Trustev Case to the Trustev API. When you add a Trustev Case, a Case Id is returned in the response header. Each object within the Trustev Case (Transaction object, Customer object, Status object, Payment object) will also have a unique Id attached. Should you wish to update the information within a Trustev Case, the relevant Ids will be required here.
* CASE_ID: This is the Id that is attached to the Trustev Case object in the response header when you have successfully added a Case.
** CUSTOMER_ID: This is the Id that is attached to the Customer object in the response header when you have successfully added a Case.
*** ITEM_ID: This is the Id that is attached to the Item object within the Transaction object, and is returned in the response header when you have successfully added a Case.
**** ADDRESS_ID: This is the Id that is attached to the Address object within the Transaction object, and is returned in the response header when you have successfully added a Case.
*****PAYMENT_ID: This is the Id that is attached to the Payment object in the response header when you have successfully added a Case.
Comments