curl --request POST \
--url https://api.sandbox.primer.io/payment-status \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"eventType": "<string>",
"date": "2023-11-07T05:31:56Z",
"notificationConfig": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
},
"version": "2.1",
"signedAt": "1689221338",
"payment": {
"id": "<string>",
"date": "2023-11-07T05:31:56Z",
"status": "PENDING",
"orderId": "<string>",
"currencyCode": "<string>",
"amount": 1,
"customerId": "<string>",
"metadata": {},
"paymentMethod": {
"descriptor": "<string>",
"paymentType": "FIRST_PAYMENT",
"paymentMethodToken": "<string>",
"analyticsId": "<string>",
"paymentMethodType": "<string>",
"paymentMethodData": {
"first6Digits": "<string>",
"last4Digits": "<string>",
"expirationMonth": "<string>",
"expirationYear": "<string>",
"cardholderName": "<string>",
"network": "<string>",
"isNetworkTokenized": false,
"binData": {
"network": "AMEX",
"issuerCountryCode": "AW",
"issuerName": "<string>",
"issuerCurrencyCode": "AED",
"regionalRestriction": "DOMESTIC_USE_ONLY",
"accountNumberType": "PRIMARY_ACCOUNT_NUMBER",
"accountFundingType": "CREDIT",
"prepaidReloadableIndicator": "RELOADABLE",
"productUsageType": "CONSUMER",
"productCode": "<string>",
"productName": "<string>"
}
},
"threeDSecureAuthentication": {
"responseCode": "NOT_PERFORMED",
"reasonCode": "GATEWAY_UNAVAILABLE",
"reasonText": "<string>",
"protocolVersion": "<string>",
"challengeIssued": true
}
},
"processor": {
"name": "<string>",
"processorMerchantId": "<string>",
"amountCaptured": 123,
"amountRefunded": 123
},
"statusReason": {
"type": "APPLICATION_ERROR",
"declineType": "SOFT_DECLINE",
"code": "ERROR",
"message": "<string>"
},
"transactions": [
{
"date": "2023-11-07T05:31:56Z",
"amount": 1,
"currencyCode": "<string>",
"transactionType": "SALE",
"processorTransactionId": "<string>",
"processorName": "<string>",
"processorMerchantId": "<string>",
"processorStatus": "PENDING",
"processorStatusReason": {
"type": "APPLICATION_ERROR",
"declineType": "SOFT_DECLINE",
"code": "ERROR",
"message": "<string>"
},
"reason": "Item returned."
}
]
}
}'