POST | /payments/syncStatusAsync | Sync the payment status async | Retrieves the payment status from Braintree and updates the payment database |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
PaymentIdentifiers | body | List<PaymentIdentifier> | Yes | List of transaction Identifiers that need to their status updated. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ReferenceNumber | form | string | Yes | Unique payment reference number. |
TransactionId | form | string | No | Unique Braintree transaction Id . |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /payments/syncStatusAsync HTTP/1.1
Host: azs-dev-payment-web.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"paymentIdentifiers":[{"referenceNumber":"String","transactionId":"String"}]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}