Payments can include an order_id
which is the ID of the payment given by the merchant in their system. Merchants can retrieve payments based on this ID.
Property | Type | Description |
| String | ID given by the merchant in their system. |
| String | The payment id at dLocal. |
| Positive Float | Transaction amount (in the currency entered in the field “currency”). |
| String | Three-letter ISO currency code, in uppercase. |
| Date (ISO_8601) | Payment’s creation date. |
| Date (ISO_8601) | Payment’s approval date. |
| String | |
| String | The payment status code. |
| String | Payment status detail. |
{"order_id": "LDMYZ5mtmsCa","payment_id": "D-4-f77392b1-4ff0-477c-749ac9a237b5","currency": "USD","amount": 382.00,"created_date": "2018-07-12T15:20:02.000+0000","approved_date": "2018-07-12T15:20:02.000+0000","status": "AUTHORIZED","status_code": "600","status_detail": "The payment was authorized."}
{"payment_id": "D-4-f77392b1-4ff0-477c-749ac9a237b5","order_id": "LDMYZ5mtmsCa","amount": 382.00,"currency": "USD","approved_date": "2018-07-11T19:55:56.348Z","created_date": "2018-07-11T19:55:56.348Z","status": "PENDING","status_code": "100","status_detail": "The payment is pending"}
$ curl \-H 'X-Date: 2018-02-20T15:44:42.310Z' \-H 'X-Login: sak223k2wdksdl2' \-H 'X-Trans-Key: fm12O7G9' \-H 'X-Version: 2.1' \-H 'User-Agent: MerchantTest / 1.0 ' \-H 'Authorization: V2-HMAC-SHA256, Signature: 1bd227f9d892a7f4581b998c21e353b1686a6bdad5940e7bb6aa596c96e0a6ec' \https://api.dlocal.com/orders/43343463432