Payment service tokens
Get payment service tokens
Get all payment service tokens for a given payment method and payment service.
GET
/payment-methods/{payment_method_id}/payment-service-tokens
curl --request GET \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/payment-methods/{payment_method_id}/payment-service-tokens \
--header 'Authorization: <authorization>'
{
"items": [
{
"approval_url": "https://api.example.app.gr4vy.com/payment-methods/f4fb0dd1-4ff9-46fb-965e-11de34aa6806/approve",
"created_at": "2021-01-01T12:34:00.000+00:00",
"id": "d6ad71d5-6908-45d6-ab65-39c55475dd08",
"payment_method_id": "9bdc4bc4-005e-4658-8eee-a309fc43cd4d",
"payment_service_id": "50f2e61f-caac-4e12-8d79-30eaf8250423",
"status": "succeeded",
"token": "string",
"type": "payment-service-token",
"updated_at": "2021-01-01T12:34:00.000+00:00"
}
],
"limit": "1",
"next_cursor": "ZXhhbXBsZTE",
"previous_cursor": "null"
}
This endpoint requires the payment-methods.read
scope.
Authorizations
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
payment_method_idrequired
string
The ID of the payment method.
Query Parameters
payment_method_id
string
Filters for transactions that have a payment method with an ID that matches exactly with the provided value.
Response
200 - application/json
items
object[]
A list of payment service tokens.
limit
Default: "20"integer
The limit applied to request. This represents the number of items that are at maximum returned by this request.
next_cursor
string | null
The cursor that represents the next page of results. Use the cursor
query
parameter to fetch this page of items.
previous_cursor
string | null
The cursor that represents the next page of results. Use the cursor
query
parameter to fetch this page of items.
curl --request GET \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/payment-methods/{payment_method_id}/payment-service-tokens \
--header 'Authorization: <authorization>'
{
"items": [
{
"approval_url": "https://api.example.app.gr4vy.com/payment-methods/f4fb0dd1-4ff9-46fb-965e-11de34aa6806/approve",
"created_at": "2021-01-01T12:34:00.000+00:00",
"id": "d6ad71d5-6908-45d6-ab65-39c55475dd08",
"payment_method_id": "9bdc4bc4-005e-4658-8eee-a309fc43cd4d",
"payment_service_id": "50f2e61f-caac-4e12-8d79-30eaf8250423",
"status": "succeeded",
"token": "string",
"type": "payment-service-token",
"updated_at": "2021-01-01T12:34:00.000+00:00"
}
],
"limit": "1",
"next_cursor": "ZXhhbXBsZTE",
"previous_cursor": "null"
}