Managing Your List of Checkouts

With Payiano you can retrieve list of Checkouts. This API endpoint play a pivotal role in the success and operational efficiency of your business. These endpoint facilitate seamless integration of payment and checkout processes into business applications, making it easier to handle transactions, track payments, and manage financial data. They are essential for businesses aiming to provide a smooth and secure online payment experience for their customers. By leveraging these endpoint, businesses can streamline their operations, reduce manual errors, and enhance the overall customer experience, ultimately contributing to increased sales and customer satisfaction.

Access to such detailed checkout information is like having a powerful tool that ensures your financial reports are accurate and trustworthy. This makes your financial activities more reliable and trustworthy. Checkouts are applied to various Payiano resources like Payment Links, Invoices, Orders and Subscriptions.

GET/checkouts
Sandbox: https://api.payiano.dev/v1/checkouts
Live: https://api.payiano.com/v1/checkouts
Security
  • Authorization header with access token is required to access this endpoint: Bearer ACCESS-TOKEN
  • Your access token should be associated to this permission checkouts_view
Request
Request body schema:
application/json
Query parameters:
page
Type: integer|null
Default: 1

The page number to be retrieved, for the list of checkouts. So, a combination of page=1 and per_page=25 returns the first 25 checkouts. A combination of page=2 and per_page=25 returns the next 25 checkouts.

per_page
Type: integer|null
Default: 25
Possible values: [1 ... 200]

The maximum number of checkouts to return in the response.

includes
Type: array_of_enums|null
Possible values:
[
"checkout.payer", "checkout.payer.billing_address", "checkout.payer.billing_address.country", "checkout.payer.shipping_address", "checkout.payer.shipping_address.country" ]

A list of additional checkout relations to return, if available. Feel free to send the relations you would like to return with every item. See Including Resources to better understand how this is working.

Response
200
Response schema:
application/json
Response body:
total_pages
Type: integer

The total number of pages that are available for the checkouts search criteria.

current_page
Type: integer

The current pagination page.

per_page
Type: integer

The amount of checkouts items return per page.

total_items
Type: integer

The total number of checkouts that match the search criteria.

items
Type: array_of_objects

The list of checkouts that match the search criteria.

id
Type: ulid
Length: 26

The unique ID assigned to each checkout which is generated by our system using the ULID format. Each ID is precisely 26 characters long, ensuring a unique and consistent identifier for every checkout. This ULID is automatically created by our system and is used to uniquely identify and track each checkout in our database.

payable_id
Type: ulid

The checkout payable model ID.

payable_type
Type: enum
Possible values:
[
"PAYMENT_LINK" ]

The checkout payable model type.

currency_code
Type: enum
Possible values:
[
"EGP" ]

The three-character ISO-4217 Currency Code that identifies the currency for the checkout. Your business should be eligible to use the selected currency code.

paid_amount
Type: decimal

The checkout amount value that has already been paid. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

total_amount
Type: decimal

The checkout total amount value that is due. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

remaining_amount
Type: decimal

The checkout remaining amount to be paid. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

is_completed
Type: boolean

This attribute indicates whether the checkout is completed or not.

is_coupon_allowed
Type: boolean

This attribute indicates if coupons are allowed for this checkout.

has_billing_address
Type: boolean

This attribute indicates the customer needs to provide their billing address or not.

has_shipping_address
Type: boolean

This attribute indicates the customer needs to provide their shipping address or not.

status
Type: enum
Possible values:
[
"UNPAID", "PENDING", "CANCELLED", "PAID", "OVER_PAID", "FULLY_REFUNDED", "PARTIALLY_REFUNDED", "INITIATED", "PARTIALLY_PAID" ]

This attribute tells that what stage the checkout is in.

error_redirect_url
Type: url|null
Max: 1000

This attribute specifies the URL to which a user is redirected to in case of a failure in the checkout's process. It is used for error handling and user experience improvement, allowing users to be informed and take appropriate actions in case of a process failure. The URL should be carefully crafted to provide useful information or alternatives to the user following a failure event.

success_redirect_url
Type: url|null
Max: 1000

Similar to error_redirect_url, this attribute defines the URL where users are redirected after a successful operation or transaction within the checkout. It's a critical part of user experience, ensuring users are guided to the correct next step or confirmation page after a successful interaction.

pay_action
Type: enum|null
Default: PAY
Possible values:
[
"PAY", "BOOK", "RENT", "DONATE", "SUBSCRIBE" ]

The checkout pay action.

fee_strategy
Type: enum
Default: DEFAULT
Possible values:
[
"PAYEE", "PAYER", "DEFAULT" ]

The checkout applied transactions processing Fees Strategy.

urls
Type: object

A collection of URLs related to the checkout.

url
Type: url

This is the full URL to the checkout page. It's a direct link that takes you to the specific page where the transaction or payment process happens. This link is typically unique and you can use it to share the checkout page with your customers.

qr_code_url
Type: url

This is the unique QR code image URL for the checkout. When user scans this QR they will be redirected to the correct checkout pay page to proceed the payment.

paid_at
Type: datetime|null

This attribute indicates when the checkout was paid. This attribute can be formatted as an ISO 8601 string or a UNIX timestamp in milliseconds, depending on the preferred datetime format specified in the request header (e.g., 2024-08-04T14:22:01Z or 1722572118554). By default, the format is UNIX timestamp in milliseconds.

payer
Type: object|null

The checkout payer model details.

name
Type: string
Min: 2
Max: 100

This is the fundamental attribute representing the payer's full legal or preferred name. It's used in all forms of communication and identification. It's crucial for personalization and ensures that all correspondences and documents are correctly addressed.

email
Type: string
Min: 5
Max: 255

The email address is a key point of contact for digital communication. It's used for sending transactional emails, marketing material, and support communications.

phone_number
Type: string

This attribute stores the payer's mobile number. It's essential for direct contact, SMS notifications, and can also be used in cases where email communication is insufficient or inappropriate.

shipping_address_as_billing_address
Type: boolean

This attribute indicating whether the payer's shipping address is identical to their billing address. This simplifies the process for payers who use the same address for both purposes and streamlines data entry and management.

billing_address
Type: object|null

The checkout payer billing address details. This attribute is only required if checkout has billing address.

country_code
Type: string

Specify the unique two-letter country code ( e.g EG, SA or AE ) corresponding to the country where payer is located. This code is part of the standard international country codes set by the ISO .

line_one
Type: string
Min: 2
Max: 255

This attribute is the primary address line. This is where the first part of the address is written, usually the house number and street name. It's where the mail starts to find where you live or work.

line_two
Type: string|null
Min: 2
Max: 255

An optional secondary address line used for additional information like apartment, suite, or building numbers that help refine the location for delivery services.

city
Type: string
Min: 2
Max: 50

This attribute specifies the city in which the address is located. It's essential for routing mail and deliveries within the correct geographical area.

state
Type: string|null
Min: 2
Max: 50

The state or region attribute further narrows down the location, especially in countries with large geographical areas divided into states, provinces, or regions.

zip_code
Type: string|null
Min: 2
Max: 30

Also known as postal code in some regions, this numeric or alphanumeric code is critical for sorting mail and determining delivery routes with precision.

phone_number
Type: string|null
Max: 30

A primary contact number that can be a mobile or cellular number, providing a direct line to the individual or entity associated with the address.

landline_number
Type: string|null
Max: 30

An alternative to the mobile number, this is a fixed-line telephone number associated with the location, useful for contact purposes where mobile signals may be unreliable.

fax_number
Type: string|null
Max: 30

Not used as much these days, but it's a number where you can receive documents sent over a telephone line.

note
Type: string|null
Min: 2
Max: 255

This free-text field allows for additional information or special instructions related to the address or delivery preferences to be included.

first_name
Type: string|null
Min: 2
Max: 50

The given name of the individual associated with the address, important for personalizing communication and ensuring the correct recipient for mail or services.

last_name
Type: string|null
Min: 2
Max: 50

The family or surname of the individual, completing the personal identification and used in conjunction with the first name for full clarity on the recipient's identity.

location
Type: object|null

This attribute is used to offer a precise, geographical identification of a place, which is crucial for various applications like mapping, navigation, and location-based services.

lat
Type: decimal
Min: -90
Max: 90

This stands for latitude. It's a way to tell exactly where the address is on the Earth using GPS. It tells you how far north or south the place is.

lng
Type: decimal
Min: -180
Max: 180

This is the longitude. Like latitude, but it tells you how far east or west the place is. Together with latitude, it can pinpoint any location on the globe.

country
Type: object

This attribute is used to offer a precise, geographical identification of a place, which is crucial for various applications like mapping, navigation, and location-based services.

code
Type: string

It implies the unique two-letter country code ( e.g EG, SA or AE ) corresponding to the country. This code is part of the standard international country codes set by the ISO .

dial_code
Type: string

The international dialing code for the country, such as +1 for the United States, +44 for the United Kingdom or +20 for Egypt. This code is crucial for making international telephone calls and can be used in applications that require user phone number verification.

currency_code
Type: string

This attribute describes the official currency used in the country, typically denoted by its ISO currency code, such as USD for the United States Dollar, EUR for the Euro or EGP for Egyptian Pound.

name
Type: string

The official name of the country in English. This is the commonly recognized name that would be used in international contexts and is essential for any application that references countries by name.

name_ar
Type: string|null

The name of the country in Arabic. This attribute is particularly useful for applications serving Arabic-speaking users, allowing for a localized experience by presenting country names in the native script.

lang
Type: string|null

This attribute represents the primary language spoken in the country. It's typically expressed in ISO 639-1 format, a two-letter code identifying the language, making it easier for applications to adapt content or interfaces according to the user's region.

flag
Type: string|null

A Unicode representation of the country's flag. Unlike an image URL, Unicode flags are character codes that render as the country's flag emoji across compatible digital platforms. This allows for easy integration of flags into text-based content and interfaces without needing external images.

shipping_address
Type: object|null

The checkout payer shipping address details. This attribute is only required if checkout has shipping address.

country_code
Type: string

Specify the unique two-letter country code ( e.g EG, SA or AE ) corresponding to the country where payer is located. This code is part of the standard international country codes set by the ISO .

line_one
Type: string
Min: 2
Max: 255

This attribute is the primary address line. This is where the first part of the address is written, usually the house number and street name. It's where the mail starts to find where you live or work.

line_two
Type: string|null
Min: 2
Max: 255

An optional secondary address line used for additional information like apartment, suite, or building numbers that help refine the location for delivery services.

city
Type: string
Min: 2
Max: 50

This attribute specifies the city in which the address is located. It's essential for routing mail and deliveries within the correct geographical area.

state
Type: string|null
Min: 2
Max: 50

The state or region attribute further narrows down the location, especially in countries with large geographical areas divided into states, provinces, or regions.

zip_code
Type: string|null
Min: 2
Max: 30

Also known as postal code in some regions, this numeric or alphanumeric code is critical for sorting mail and determining delivery routes with precision.

phone_number
Type: string|null
Max: 30

A primary contact number that can be a mobile or cellular number, providing a direct line to the individual or entity associated with the address.

landline_number
Type: string|null
Max: 30

An alternative to the mobile number, this is a fixed-line telephone number associated with the location, useful for contact purposes where mobile signals may be unreliable.

fax_number
Type: string|null
Max: 30

Not used as much these days, but it's a number where you can receive documents sent over a telephone line.

note
Type: string|null
Min: 2
Max: 255

This free-text field allows for additional information or special instructions related to the address or delivery preferences to be included.

first_name
Type: string|null
Min: 2
Max: 50

The given name of the individual associated with the address, important for personalizing communication and ensuring the correct recipient for mail or services.

last_name
Type: string|null
Min: 2
Max: 50

The family or surname of the individual, completing the personal identification and used in conjunction with the first name for full clarity on the recipient's identity.

location
Type: object|null

This attribute is used to offer a precise, geographical identification of a place, which is crucial for various applications like mapping, navigation, and location-based services.

lat
Type: decimal
Min: -90
Max: 90

This stands for latitude. It's a way to tell exactly where the address is on the Earth using GPS. It tells you how far north or south the place is.

lng
Type: decimal
Min: -180
Max: 180

This is the longitude. Like latitude, but it tells you how far east or west the place is. Together with latitude, it can pinpoint any location on the globe.

country
Type: object

This attribute is used to offer a precise, geographical identification of a place, which is crucial for various applications like mapping, navigation, and location-based services.

code
Type: string

It implies the unique two-letter country code ( e.g EG, SA or AE ) corresponding to the country. This code is part of the standard international country codes set by the ISO .

dial_code
Type: string

The international dialing code for the country, such as +1 for the United States, +44 for the United Kingdom or +20 for Egypt. This code is crucial for making international telephone calls and can be used in applications that require user phone number verification.

currency_code
Type: string

This attribute describes the official currency used in the country, typically denoted by its ISO currency code, such as USD for the United States Dollar, EUR for the Euro or EGP for Egyptian Pound.

name
Type: string

The official name of the country in English. This is the commonly recognized name that would be used in international contexts and is essential for any application that references countries by name.

name_ar
Type: string|null

The name of the country in Arabic. This attribute is particularly useful for applications serving Arabic-speaking users, allowing for a localized experience by presenting country names in the native script.

lang
Type: string|null

This attribute represents the primary language spoken in the country. It's typically expressed in ISO 639-1 format, a two-letter code identifying the language, making it easier for applications to adapt content or interfaces according to the user's region.

flag
Type: string|null

A Unicode representation of the country's flag. Unlike an image URL, Unicode flags are character codes that render as the country's flag emoji across compatible digital platforms. This allows for easy integration of flags into text-based content and interfaces without needing external images.

created_at
Type: datetime

The created datetime of the checkout. This attribute can be formatted as an ISO 8601 string or a UNIX timestamp in milliseconds, depending on the preferred datetime format specified in the request header (e.g., 2024-08-04T14:22:01Z or 1722572118554). By default, the format is UNIX timestamp in milliseconds.

updated_at
Type: datetime

The updated datetime of the checkout. This attribute can be formatted as an ISO 8601 string or a UNIX timestamp in milliseconds, depending on the preferred datetime format specified in the request header (e.g., 2024-08-04T14:22:01Z or 1722572118554). By default, the format is UNIX timestamp in milliseconds.

Response sample:
1
{
2 "per_page": 25, 3 "total_pages": 1, 4 "total_items": 1, 5 "current_page": 1, 6
"items": [
7
{
8 "id": "01hqh45s7826hfwdze8dp1z21f", 9 "payable_id": "01hqh45s7826hfwdze8dp1z21f", 10 "payable_type": "PAYMENT_LINK", 11 "currency_code": "EGP", 12 "paid_amount": 0, 13 "total_amount": 1140, 14 "remaining_amount": 1140, 15 "is_completed": false, 16 "is_coupon_allowed": true, 17 "has_billing_address": true, 18 "has_shipping_address": false, 19 "status": "UNPAID", 20 "error_redirect_url": "https://pyngy.com/payments/error", 21 "success_redirect_url": "https://pyngy.com/payments/success", 22 "pay_action": "PAY", 23 "fee_strategy": "DEFAULT", 24
"urls": {
25 "url": "https://pay.payiano.com/checkouts/01hqh45s7826hfwdze8dp1z21f", 26 "qr_code_url": "https://api-pay.payiano.com/v1/checkouts/01hqh45s7826hfwdze8dp1z21f/qrcode" 27 }, 28 "paid_at": null, 29
"payer": {
30 "name": "Mohsen Ali", 31 "email": "mohsen@gawaab.com", 32 "phone_number": "+201000333000", 33 "shipping_address_as_billing_address": true, 34
"billing_address": {
35 "country_code": "EG", 36 "line_one": "7th Makram Ebid, Nasr City", 37 "line_two": "Building 174, apartment 12", 38 "city": "Cairo", 39 "state": "Nasr City", 40 "zip_code": "11321", 41 "phone_number": "+201000333000", 42 "landline_number": "6546543213216", 43 "fax_number": "5456464646", 44 "note": null, 45 "first_name": "Mohsen", 46 "last_name": "Osama", 47
"location": {
48 "lat": 21.32, 49 "lng": 12.63 50 }, 51
"country": {
52 "code": "EG", 53 "dial_code": "+20", 54 "currency_code": "EGP", 55 "name": "Egypt", 56 "name_ar": "مصر", 57 "lang": "AR", 58 "flag": "🇪🇬" 59 } 60 }, 61
"shipping_address": {
62 "country_code": "EG", 63 "line_one": "7th Makram Ebid, Nasr City", 64 "line_two": "Building 174, apartment 12", 65 "city": "Cairo", 66 "state": "Nasr City", 67 "zip_code": "11321", 68 "phone_number": "+201000333000", 69 "landline_number": "6546543213216", 70 "fax_number": "5456464646", 71 "note": null, 72 "first_name": "Mohsen", 73 "last_name": "Osama", 74
"location": {
75 "lat": 21.32, 76 "lng": 12.63 77 }, 78
"country": {
79 "code": "EG", 80 "dial_code": "+20", 81 "currency_code": "EGP", 82 "name": "Egypt", 83 "name_ar": "مصر", 84 "lang": "AR", 85 "flag": "🇪🇬" 86 } 87 } 88 }, 89 "created_at": "1722572118554", 90 "updated_at": "1722572118554" 91 } 92 ] 93}