Store Transaction Details
POST
https://{baseUrl}/v2/merchant/{merchantId}/transactionDetails
The Authorization Header is required if JWT (JSON Web Token) authentication is enabled in the application configuration (config.server.jwt_enable
is true
). This header must contain a valid JWT token prefixed with the word "Bearer". The token is used to authenticate the request and verify that the sender is authorized to perform the requested operation
The Request Body must be an array containing exactly one object. This object includes the details of the transaction and payment information.
This endpoint is used to store transaction details for a merchant identified by merchantId
. The endpoint validates the request body, checks the merchant's enrollment, and stores the transaction data in both MongoDB and optionally in AWS DynamoDB.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Path Parameters
Name | Description |
---|---|
| Merchant Id for create transaction |
Body
Name | Type | Required | Description |
---|---|---|---|
| String | True | The first 6 digits of the card used in the transaction. |
| String | True | The last 4 digits of the card used in the transaction. |
| String | True | The date and time of the transaction. |
| String | True | The payment descriptor |
| Object | True | Object containing transaction details like payment information and purchased products. |
| Object | True | Object containing payment details. |
| Object | True | Object containing the total amount and currency. |
| Number | True | The total payment amount. |
| String | True | The currency of the payment. |
| Array | True | List of products purchased in the transaction. |
| String | False | The type of product purchased. |
| String | True | The description of the product. |
| String | False | The URL of the product purchased. |
| String | False | The artist or seller of the product. |
| Object | True | Object containing the price per unit of the product. |
| Number | True | The unit price amount of the product. |
| String | True | The currency of the unit price. |
| Number | True | The quantity of the product purchased. |
| Number | False | The sequence number for credit reimbursement. |
| Object | True | Object containing delivery details for the purchased product. |
| String | False | The shipping carrier used for delivery. |
| String | False | The tracking number for the shipment. |
| String | False | The date the product was shipped. |
| String | False | The date the product was delivered. |
| String | True (Conditionally) | Required if |
| String | True (Conditionally) | Required if |
| Object | True | Object containing information about the merchant. |
| String | True | The name of the merchant. |
| String | True | The URL of the merchant. |
| String | True | The contact phone number of the merchant. |
| Object | True | Object containing details about the merchant's store. |
| String | True | The name of the store. |
| Object | True (Conditionally) | Object containing information about the customer, required for "CE" merchants. |
| String | True (Conditionally) | Required for "CE" merchants if |
| Object | True (Conditionally) | Required for "CE" merchants if |
| String | True (Conditionally) | Required if the merchant enrollment is "CE" or based on specific conditions. |
| Object | True (Conditionally) | Required for "CE" merchants or if additional security checks are needed. |
| String | True (Conditionally) | Required if other device fields are not provided. |
| String | True (Conditionally) | Required if other device fields are not provided. |
| String | True (Conditionally) | Required if other device fields are not provided. |
Last updated