curl --request GET \
--url https://channels-service-alpha.fourvenues.com/payments/{id} \
--header 'X-Api-Key: <api-key>'{
"data": {
"_id": "abcdefghi1234567890",
"status": "pending",
"rate_id": "abcdefghi1234567890",
"organization_id": "abcdefghi1234567890",
"event_id": "abcdefghi1234567890",
"resource_type": "ticket",
"resource_ids": [
"abcdefghi1234567890"
],
"total": {
"amount": 20.6,
"fees": 0.6
},
"currency": "EUR",
"paid_at": "2023-12-31T00:00:00.000Z",
"expires_at": "2024-01-01T00:00:00.000Z",
"send_resources": true,
"metadata": {
"user_id": "abcdefghi1234567890",
"internal_id": "abcdefghi1234567890"
}
},
"success": true
}Get a payment by id
curl --request GET \
--url https://channels-service-alpha.fourvenues.com/payments/{id} \
--header 'X-Api-Key: <api-key>'{
"data": {
"_id": "abcdefghi1234567890",
"status": "pending",
"rate_id": "abcdefghi1234567890",
"organization_id": "abcdefghi1234567890",
"event_id": "abcdefghi1234567890",
"resource_type": "ticket",
"resource_ids": [
"abcdefghi1234567890"
],
"total": {
"amount": 20.6,
"fees": 0.6
},
"currency": "EUR",
"paid_at": "2023-12-31T00:00:00.000Z",
"expires_at": "2024-01-01T00:00:00.000Z",
"send_resources": true,
"metadata": {
"user_id": "abcdefghi1234567890",
"internal_id": "abcdefghi1234567890"
}
},
"success": true
}The id of the payment to retrieve.
OK
Show child attributes
Unique identifier of the payment.
"abcdefghi1234567890"
Status of the payment.
"pending"
Unique identifier for the ticket rate.
"abcdefghi1234567890"
Unique identifier for the organization.
"abcdefghi1234567890"
Unique identifier for the organization.
"abcdefghi1234567890"
Resource bought.
ticket, name-change, list, pass, plan, booking "ticket"
Unique identifier for the resources.
Currency used for total.
"EUR"
Date that should be displayed as the date the payment was made.
"2023-12-31T00:00:00.000Z"
Expiration date of for the payment.
"2024-01-01T00:00:00.000Z"
If the resources (tickets, passes, etc) should be sent to the user (via email, sms, whatsapp, etc) by Fourvenues.
true
Metadata passed by the API client to be stored in the payment. Max 1kb.
{
"user_id": "abcdefghi1234567890",
"internal_id": "abcdefghi1234567890"
}