Get method to search Purchase from account with contact email
Name | Description |
---|---|
account_id required | Your account unique identifier to access API. |
user_id | Search by: External contact user ID |
product_UUID | Search by: Product UUID |
transaction_code | Search by: Transaction code |
currency | Search by: Currency in ISO 4217 Code |
status | Search by: Status, please use only the following status: add_cart, purchase, remove_cart, product_view, product_refund, purchase_failed, canceled, no_show, no_paid, check_in, check_out, reserved, confirmed |
product_custom_field | Search by: Any product custom field https://www.cendyncrm.com/settings/product_custom_fields |
GET
/v2/account/:account_id/purchases
Accept: application/json
Authorization: Token token={account.secret}
Content-Type: application/json
200
{
"purchases": [
{
"created_at": "2020-08-28T10:29:19.250Z",
"updated_at": "2020-08-28T10:30:28.395Z",
"id": "5f48dc7ef0fcef97a1d7074d",
"status": "purchase",
"contact_id": "5f437b5ff0fcef60b273c7b9",
"campaign_id": "5b8f9ff9f70366eff600000b",
"transaction_code": "4230923jda023230",
"price": 748.45,
"currency": "EUR",
"description": "3D Touch. 12MP photos. 4K video.One powerful phone.",
"price_EUR": 748.45,
"product_UUID": "3210938120313912312",
"check_in": "2020-09-27T22:00:00.000Z",
"check_out": "2020-10-27T23:00:00.000Z",
"hotel_id": "23"
}
]
}