Identification
To be able to store a transaction in Voyado, you’ll need to connect it to a specific contact. The key has to be a unique data field for the specific contact type. One of these fields is used:- contactId
- mobilePhone
- memberNumber
- externalId
- socialSecurityNumber (actually a Swedish or Finnish Personal Identification Number)
Example
Example payload
In the below example payload the key type is “contactId”. When using this key type, you do not need to specify contactType as contactId is always unique. If you do send contactType, it will be used in the matching logic and has to match.contact.matchKeyType is set to “contactId”, then contact.contactType is not a required field.
If using any other matchKeyType, and contactType is not provided, Customer Engagement will just use whatever your default contact type is (normally “Member”).
A successful POST operation returns a 202 (Accepted).
Transactions can also be imported through an XML file format. Read more about in this article, Receipt XML import.
Find the complete list of transaction field definitions here.
Deleting transaction
If a receipt was registered by mistake, or has to be removed (for example because of a fraudulent transaction or a customer request), you can delete it using its external ID and this endpoint:externalId here is the external ID that identifies the receipt in Customer Engagement.
string
A free-text reason for the deletion, sent in the query string. The reason is saved in the audit log, so it’s good practice to always include one. Example values are “Fraudulent transaction” or “Customer request”.
POST /api/v3/receipts.
Responses
- 200 OK: The receipt was deleted.
- 400 Bad Request (
ValidationError): The request was not valid. - 404 Not Found (
NoMatchingReceipt): No receipt with that external ID could be found.