List all Payment Requests
GET/v1/requests
Returns a list of all Payment Requests.
Request
Query Parameters
The page number to return.
The number of items to return per page.
Possible values: [open
, paid
, voided
]
The status of the Payment Requests to return.
Responses
- 200
- 400
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
The total number of Payment Requests.
The URL for the previous page of Payment Requests.
The URL for the next page of Payment Requests.
The number of Payment Requests returned in this response.
data
ReadRequestSerializer[]
An array of Payment Requests.
The unique identifier of the Payment Request.
String representing the object's type. Objects of the same type share the same value.
The name of the merchant who created the Payment Request.
The support email of the merchant who created the Payment Request.
branding
object
Details on branding elements to apply when rendering the Payment Request page.
A secure URL to an image icon
A secure URL to an image logo
Has the value of true if logo should be rendered in payment page or false if icon should be used.
A hex color code that will be used as background color of the Payment Request page
A hex color code that will be used as background color of the submit or PAY button
Time at which the object was created. Measured in seconds since the Unix epoch.
Three-letter ISO currency code, in lowercase. Must be a supported currency.
The ID of the customer who will receive the Payment Request.
The name of the customer .
The phone number of the customer.
The methods by which the customer will receive the Payment Request.
delivered
object
Indicates the status whether the Payment Request has been delivered to the customer.
Indicates the status whether the Payment Request has been delivered to the customer via email.
Indicates the status whether the Payment Request has been delivered to the customer via SMS.
line_items
LineItemSerializer[]
A list of items the customer will be billed for.
Unit amount of the product in cents represented as a whole integer.
A description of the product
A secure URL to an image of the product
The name of the product
The quantity of the products being purchased
Has the value of true
if the object exists in live mode or the value of false
if the object exists in test mode.
A custom message to be included in the Payment Request.
metadata
object
A set of key-value pairs that you can attach to the Payment Request. It can be useful for storing additional information about the invoice in a structured format.
A unique, identifying string that follows a specific pattern. It is used to identify the Payment Request associated to a customer.
Indicates the status whether the Payment Request has been paid by the customer.
Time at which the Payment Request was paid. Measured in seconds since the Unix epoch.
The charge
object details associated with the Payment Request after successful payment.
Possible values: [card
, bpi
, gcash
, paymaya
, alipay
, unionpay
, wechat
]
The payment methods that are available for the customer to pay the Payment Request.
The URL where the customer can view and pay the Payment Request.
Default value: true
Indicates whether 3D Secure authentication shall be required for card payments. Always have a value true
.
The total amount of the Payment Request before any discounts or taxes are applied.
The total amount of the Payment Request after any discounts or taxes are applied.
Time at which the object was last updated. Measured in seconds since the Unix epoch.
Indicates the status whether the Payment Request has been voided by the merchant.
Time at which the Payment Request was voided. Measured in seconds since the Unix epoch.
The reason provided by the Merchant why the Payment Request was voided.
{
"total": 100,
"previous": null,
"next": "https://request.zip.ph/api/v1/requests?page=2",
"count": 10,
"data": [
{
"id": "pr_017b996e4a6a9cea9562902021febc6b",
"object": "string",
"account_name": "Zip Fitness",
"account_support_email": "[email protected]",
"branding": {
"icon": "https://example.com/icon.png",
"logo": "https://example.com/logo.png",
"use_logo": true,
"primary_color": "#FFFFFF",
"secondary_color": "#4f99fe"
},
"created": 1616425200,
"currency": "PHP",
"customer": "cus_017b996e4a6a9cea9562902021febc6b",
"customer_name": "Gerry Isaac",
"customer_phone": "+639123456789",
"delivery_methods": [
"email",
"sms"
],
"delivered": {
"email": true,
"sms": false
},
"line_items": [
{
"amount": 4999,
"description": "Annual Fee",
"image": "string",
"name": "Zip Elite Membership",
"quantity": 1
}
],
"livemode": true,
"message": "Thank you for continuing your membership!",
"metadata": {
"Member ID": "123456"
},
"number": "EDE58F9E-0001",
"paid": false,
"paid_at": null,
"payment_details": null,
"payment_method_types": [
"card",
"gcash",
"paymaya"
],
"payment_request_url": "https://request.zip.ph/pr_017b996e4a6a9cea9562902021febc6b",
"require_auth": true,
"subtotal": 4999,
"total": 4999,
"updated": 1616425200,
"voided": false,
"voided_at": null,
"void_reason": null
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
error
object
{
"message": "Missing parameter: customer",
"error": {
"type": "invalid_request_error",
"message": "Missing parameter: customer"
}
}