Get payment link data
GET
/v1/payment-link/{payment_link_id}/orders
Returns the orders generated by a given payment link, with the
status of each one. Use it to track the conversions of the link created in
POST /v1/payment-link.
The response is paginated: meta carries the query totals and links carries
the navigation URLs between pages.
Authorizations
bearerAuth
Bearer token of the merchant obtained via POST /oauth2/token using the
merchant's credentials (not the app's). See
Authentication.
Type
HTTP (bearer)
Parameters
Path Parameters
payment_link_id*
Payment link ID (returned in POST /v1/payment-link).
Type
Requiredstring
Example
"2"Responses
Payment link found successfully.
application/json
JSON "data": [ { "order": { "id": 1, "status": "cancelado", "total": 6000 } }, { "order": { "id": 2, "status": "pendente", "total": 6000 } } ], "meta": { "total": 2, "page": 1, "per_page": 20, "total_pages": 1 }, "links": { "self": "https://api.appmax.com.br/v1/payment-link/1/orders?page=1", "next": null, "prev": null, "last": "https://api.appmax.com.br/v1/payment-link/1/orders?page=1" }
{
}
GET
/v1/payment-link/{payment_link_id}/orders