{
    "info": {
        "_postman_id": "d70a3f1f-55e8-434b-b968-a97df614a9c1",
        "name": "ZenythPay Developer API",
        "description": "Every request in this collection accepts an API key. Set base_url to https://api.zenythpay.com and partner_environment. With a merchant's own API key, set the local secret partner_api_key: the merchant is resolved from the credential. With a developer's platform key, set the local secret platform_api_key for the Developer Platform requests; for a merchant's requests, set partner_api_key to the same key, turn on X-ZenythPay-Merchant and set platform_merchant to the merchant's cm_ id. Manage credentials and webhook configuration only in the dashboard or your developer account. Send individual requests after replacing example IDs, tokens, dates, and amounts. Set partner_idempotency_key to a stable unique value for one logical money-moving operation and reuse it only for retries with the same body; on a Developer Platform request, Idempotency-Key is optional and off until you turn it on. Never share an export containing secrets. Full guide: https://api.zenythpay.com/developers",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Transactions",
            "item": [
                {
                    "name": "List merchant transactions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/transactions?limit=20&cursor={{transaction_next_cursor}}&term={{transaction_search_term}}&from={{transaction_from}}&to={{transaction_to}}&type={{transaction_type}}&status={{transaction_status}}&source={{transaction_source}}&payment_type={{transaction_payment_type}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "transactions"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "{{transaction_next_cursor}}",
                                    "description": "Use the next_cursor returned by the previous response. Leave empty for the first page."
                                },
                                {
                                    "key": "term",
                                    "value": "{{transaction_search_term}}",
                                    "description": "Optional search term matched against full or partial customer first_name, customer last_name, customer email, including one- and two-character customer terms, card first6, card last4, or transaction date when the term is YYYY-MM-DD."
                                },
                                {
                                    "key": "from",
                                    "value": "{{transaction_from}}",
                                    "description": "Optional inclusive transaction creation-date range start in YYYY-MM-DD format."
                                },
                                {
                                    "key": "to",
                                    "value": "{{transaction_to}}",
                                    "description": "Optional inclusive transaction creation-date range end in YYYY-MM-DD format."
                                },
                                {
                                    "key": "type",
                                    "value": "{{transaction_type}}"
                                },
                                {
                                    "key": "status",
                                    "value": "{{transaction_status}}"
                                },
                                {
                                    "key": "source",
                                    "value": "{{transaction_source}}"
                                },
                                {
                                    "key": "payment_type",
                                    "value": "{{transaction_payment_type}}"
                                }
                            ]
                        },
                        "description": "Required API scope: transactions:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists transactions for an accessible merchant using newest-first cursor pagination for infinite loading. The optional term searches full or partial customer first_name, customer last_name, customer email, including one- and two-character customer terms, card first6, card last4, and YYYY-MM-DD transaction dates. Optional from and to filters apply an inclusive transaction creation-date range, in calendar days in UTC; `date` is refused (422), so use them instead. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires transactions:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant transaction",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/transactions/{{transaction_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "transactions",
                                "{{transaction_id}}"
                            ]
                        },
                        "description": "Required API scope: transactions:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns one transaction for an accessible merchant, including related customer, saved payment method display details, and decrypted billing details when present. Billing details are disclosed only on this authorized detail route and the response is not cacheable. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires transactions:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant transaction summary",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/transactions/summary?date={{transaction_date}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "transactions",
                                "summary"
                            ],
                            "query": [
                                {
                                    "key": "date",
                                    "value": "{{transaction_date}}",
                                    "description": "Optional exact transaction date filter in YYYY-MM-DD format. Leave empty for all time."
                                }
                            ]
                        },
                        "description": "Required API scope: transactions:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns all-time or exact-date transaction summary totals for an accessible merchant. Volume and count are net successful sale totals after successful refund and void transactions are deducted. Sale, refund, and void totals are returned separately, and success_rate is the successful sale authorization percentage before refunds and voids. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires transactions:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get daily merchant transaction summary",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/transactions/daily-summary?from={{transaction_date}}&to={{transaction_date}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "transactions",
                                "daily-summary"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "{{transaction_date}}",
                                    "description": "Optional inclusive start date in YYYY-MM-DD format. Must be on or after 2000-01-01."
                                },
                                {
                                    "key": "to",
                                    "value": "{{transaction_date}}",
                                    "description": "Optional inclusive end date in YYYY-MM-DD format. Must be on or after 2000-01-01 and on or after from when from is supplied. When both from and to are supplied, the range can be at most 366 days, counting both ends; a longer range returns 422."
                                }
                            ]
                        },
                        "description": "Required API scope: transactions:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns daily graph buckets, each a calendar day in UTC, for successful payments, successful refunds, successful voids, and sale authorization success rate. When both from and to are provided, the response includes zero-filled days for the inclusive range. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires transactions:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Charges",
            "item": [
                {
                    "name": "Get the billing fields the merchant's processor requires",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/billing-field-requirements",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "billing-field-requirements"
                            ]
                        },
                        "description": "Required API scope: payments:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns which billing fields must be collected for a card charge on this merchant to be accepted, so a payment form can mark inputs required or optional instead of hardcoding them. Keys mirror the `POST /api/v1/merchant/charges` request body: read `fields.billing_details.city` for the input sent as `billing_details.city`. A field is `true` when it must be sent. The answer is the union of what the merchant's attached card processor requires and what this API's own charge validation requires, so `billing_details.name`, `billing_details.country` and `billing_details.postal_code` are always `true` — omitting them is a 422 from this API regardless of the processor. `billing_details.address_line_2` is not described because no processor requirement exists for a second address line; treat it as always optional. Fields absent from `fields` are not gated. Authorization matches the charge endpoint. `source` is `processor` when the merchant's own card processor answered, and `fallback` when that could not be established — no gateway yet, no card processor attached, an attached processor that does not identify itself as a card processor, or a processor that could not be read — in which case every described field is reported as required so the form over-collects rather than being declined. Answers are cached briefly per gateway, so a processor change can take up to a few minutes to appear. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payments:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get the merchant's tokenization key",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/tokenization-key",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "tokenization-key"
                            ]
                        },
                        "description": "Required API scope: payments:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns the public tokenization key for this merchant's gateway, so a payment form can tokenize card or ACH details in the payer's browser and send the resulting one-time token to `POST /api/v1/merchant/charges`. Use this key only for tokenization; never place the API credential in browser code. The key only produces tokens; it cannot charge, refund, or read anything. It is `null` until the merchant's gateway provisioning has created it, in which case no payment form can tokenize yet. Authorization matches the charge endpoint. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payments:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get the merchant's publishable key",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/publishable-key",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "publishable-key"
                            ]
                        },
                        "description": "Required API scope: payments:read. The merchant is resolved from the credential; send its matching environment. Platform keys can't call this.\n\nReturns the public key that shows this merchant's card fields in a checkout page. The key can only show the card fields; it cannot charge, refund, or read anything, so it is safe to place in a web page. Never place the API credential in browser code. The first read creates the key, and later reads return the same key until the merchant replaces it in the dashboard. While the merchant can't take card payments (suspended, or not yet active), this call answers 403, like every Developer API call. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payments:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create a card, digital wallet, or ACH charge",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": \"10.00\",\n    \"payment_type\": \"card\",\n    \"payment_token\": \"00000000-000000-000000-000000000000\",\n    \"billing_details\": {\n        \"name\": \"Grace Hopper\",\n        \"country\": \"US\",\n        \"postal_code\": \"94107\",\n        \"phone\": \"(415) 555-0123\"\n    },\n    \"card\": {\n        \"type\": \"visa\",\n        \"first6\": \"411111\",\n        \"last4\": \"1111\",\n        \"exp_month\": 12,\n        \"exp_year\": 2030\n    }\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/charges",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "charges"
                            ]
                        },
                        "description": "Required API scope: payments:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCharges a merchant with a tokenized typed card, Apple Pay, Google Pay, or ACH payment method. Card and wallet payments require `billing_details.name`, `billing_details.country`, and `billing_details.postal_code`; ACH accepts optional `account_name` and billing details. When email is omitted, the transaction is recorded as an anonymous guest charge and no customer or payment method is saved. When email is provided, the charge is associated to the existing merchant customer with that email or a new email-only customer is created. The payment method is charged and not stored. This operation saves no card, and `save_card` answers 422 \"A card can be saved only on a customer's charge.\" (save a card with `save_card` on `POST /api/v1/merchant/customers/{customer}/charges`). Submitted billing names fill only null customer name fields; otherwise, the API queries the exact approved transaction and fills only null values. Existing non-null customer names are not overwritten, and unavailable or mismatched query enrichment does not change the completed payment outcome. Billing details are encrypted at rest and omitted from this charge response; authorized users may retrieve them from the no-store transaction-detail response. If you get no answer, or a 502, send the same request again with the same Idempotency-Key and body; the Idempotency-Key header lists every answer a retry can get. A replayed charge answers with its recorded outcome as it stands now (a later correction from the gateway can change it), 200 with the transaction when it is approved and 402 with the decline message and the transaction when it is declined. ACH is available to a sandbox merchant with no acceptance, and to a live merchant only after they accept its service fees and activation is confirmed; the merchant turns ACH on in the dashboard, and until then submitting `ach` returns 422 and reaches no gateway. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payments:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Charge a customer",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": \"10.00\",\n    \"source\": \"new_card\",\n    \"payment_token\": \"00000000-000000-000000-000000000000\",\n    \"billing_details\": {\n        \"name\": \"Grace Hopper\",\n        \"country\": \"US\",\n        \"postal_code\": \"94107\"\n    },\n    \"card\": {\n        \"type\": \"visa\",\n        \"first6\": \"411111\",\n        \"last4\": \"1111\",\n        \"exp_month\": 12,\n        \"exp_year\": 2030\n    }\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}/charges",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}",
                                "charges"
                            ]
                        },
                        "description": "Required API scope: payments:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCharges a merchant-owned customer using a new tokenized typed card, Apple Pay, Google Pay, or ACH payment method, or a payment method saved before ZenythPay retired its gateway customer vault. New card and wallet payments require `billing_details.name`, `billing_details.country`, and `billing_details.postal_code`; new ACH accepts optional `account_name` and billing details; saved methods may send partial billing details that merge over the encrypted method snapshot. A new typed card sent with `save_card` is charged and saved for the customer in the same sale, and the response adds `saved_card` (see `save_card`). `source` `saved_card` charges a card saved that way, by the customer or the business (see `initiated_by`). A business charge of a card saved for recurring or installment payments is sent as one; an installment carries `installment_number`. Otherwise new payment methods are charged directly and are not stored — no card or payment method is saved, and `payment_method` and `payment_method_id` are null on the response. Saved-method charges remain available for methods stored before the vault was retired, and use the customer's vault id, selected method billing id, and merchant-initiated flags; no new saved method can be created. Billing details are encrypted at rest and omitted from this charge response (a card saved with `save_card` returns its name, country and postal code in `saved_card.billing_details`); authorized users may retrieve them from the no-store transaction-detail response, and from the saved-payment-method response for methods stored before the vault was retired. If you get no answer, or a 502, send the same request again with the same Idempotency-Key and body; the Idempotency-Key header lists every answer a retry can get. A replayed charge answers with its recorded outcome as it stands now (a later correction from the gateway can change it), 200 with the transaction when it is approved and 402 with the decline message and the transaction when it is declined. ACH is available to a sandbox merchant with no acceptance, and to a live merchant only after they accept its service fees and activation is confirmed; the merchant turns ACH on in the dashboard, and until then submitting `ach` returns 422 and reaches no gateway. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payments:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List merchant payment operations",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-operations?limit=20&cursor={{payment_operation_next_cursor}}&term={{payment_operation_search_term}}&status={{payment_operation_status}}&operation_type={{payment_operation_type}}&source={{payment_operation_source}}&payment_type={{payment_operation_payment_type}}&date={{payment_operation_date}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-operations"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "{{payment_operation_next_cursor}}",
                                    "description": "Use the next_cursor returned by the previous response. Leave empty for the first page."
                                },
                                {
                                    "key": "term",
                                    "value": "{{payment_operation_search_term}}",
                                    "description": "Optional search term matched against operation metadata, customer or invoice recipient names/email, exact amount, numeric ids, or operation date when the term is YYYY-MM-DD."
                                },
                                {
                                    "key": "status",
                                    "value": "{{payment_operation_status}}",
                                    "description": "Optional operation status filter: pending, gateway_confirmed, succeeded, declined, failed, reconciliation_failed, or held."
                                },
                                {
                                    "key": "operation_type",
                                    "value": "{{payment_operation_type}}",
                                    "description": "Optional operation type filter: merchant_charge, tap_to_pay_payment, customer_charge, invoice_payment, refund, or void."
                                },
                                {
                                    "key": "source",
                                    "value": "{{payment_operation_source}}",
                                    "description": "Optional payment source filter: new_card, new_ach, payment_method, or tap_to_pay."
                                },
                                {
                                    "key": "payment_type",
                                    "value": "{{payment_operation_payment_type}}",
                                    "description": "Optional payment type filter: card or ach."
                                },
                                {
                                    "key": "date",
                                    "value": "{{payment_operation_date}}",
                                    "description": "Optional exact operation creation date filter in YYYY-MM-DD format."
                                }
                            ]
                        },
                        "description": "Required API scope: payments:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists this business's payment operations using newest-first cursor pagination for infinite loading. The optional term searches operation metadata (your `order_id` included), card display fields, gateway identifiers, customer names/email, invoice recipient names/email, exact amount, numeric ids, and YYYY-MM-DD operation dates. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payments:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant payment operation",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-operations/{{payment_operation_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-operations",
                                "{{payment_operation_id}}"
                            ]
                        },
                        "description": "Required API scope: payments:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns one payment operation of this business. Operations outside the credential-bound merchant are hidden with a 404 response. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payments:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Voids",
            "item": [
                {
                    "name": "Void a merchant transaction",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"description\": \"Customer canceled before settlement\"\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/transactions/{{transaction_id}}/voids",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "transactions",
                                "{{transaction_id}}",
                                "voids"
                            ]
                        },
                        "description": "Required API scope: voids:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCreates a local void transaction linked to the original sale and sends the void to the gateway. Unresolved refunds or voids block another void with 409 until their outcome is definitive. If you get no answer, or a 502, send the same request again with the same Idempotency-Key and body. A finished void answers its original 201 or 402 again, with `Idempotency-Replayed` set; the Idempotency-Key header lists every other answer a retry can get. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires voids:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Refunds",
            "item": [
                {
                    "name": "Refund a merchant transaction",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": \"{{refund_amount}}\",\n    \"order_id\": \"{{refund_order_id}}\",\n    \"description\": \"Customer return\"\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/transactions/{{transaction_id}}/refunds",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "transactions",
                                "{{transaction_id}}",
                                "refunds"
                            ]
                        },
                        "description": "Required API scope: refunds:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCreates a local refund transaction linked to the original sale and sends the refund to the gateway. Omitting amount refunds the remaining local transaction amount. Unresolved refunds reserve their amounts until completion or definitive rejection; an unresolved void blocks refunds with 409. If you get no answer, or a 502, send the same request again with the same Idempotency-Key and body. A finished refund answers its original 201 or 402 again, with `Idempotency-Replayed` set; the Idempotency-Key header lists every other answer a retry can get. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires refunds:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Customers",
            "item": [
                {
                    "name": "List customers",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers?limit=20&cursor={{customer_next_cursor}}&term={{customer_search_term}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "{{customer_next_cursor}}",
                                    "description": "Use the next_cursor returned by the previous response. Leave empty for the first page."
                                },
                                {
                                    "key": "term",
                                    "value": "{{customer_search_term}}",
                                    "description": "Optional search term matched against first_name, last_name, and email."
                                }
                            ]
                        },
                        "description": "Required API scope: customers:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists this business's customers, oldest first, using cursor pagination for infinite loading. Customers belong to the whole business, across its locations. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a customer",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}"
                            ]
                        },
                        "description": "Required API scope: customers:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns one customer of this business. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant customer summary",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/summary?limit=20&cursor={{customer_next_cursor}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "summary"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "{{customer_next_cursor}}",
                                    "description": "Use the next_cursor returned by the previous response. Leave empty for the first page."
                                }
                            ]
                        },
                        "description": "Required API scope: customers:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns the overall customer count and cursor-paginated per-customer successful sale transaction count and net charged amount, oldest customer first. Net customer amount is successful sale volume minus successful refunds and voids. Customers, and `count`, cover the whole business; with a key made for one location, each customer's sale count and net amount cover only that location's transactions. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create a customer",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"first_name\": \"Grace\",\n    \"last_name\": \"Hopper\",\n    \"email\": \"grace@example.com\"\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers"
                            ]
                        },
                        "description": "Required API scope: customers:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCreates a customer of this business, shared by all its locations. Customer email addresses are unique within the business. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update a customer",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"first_name\": \"Grace\",\n    \"last_name\": \"Hopper\",\n    \"email\": \"updated-grace@example.com\"\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}"
                            ]
                        },
                        "description": "Required API scope: customers:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nUpdates a customer's first name, last name, or email. Customer email addresses are unique within the business. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Delete a customer",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}"
                            ]
                        },
                        "description": "Required API scope: customers:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nDeletes a customer and its saved payment methods. Its payments, refunds and voids are kept and no longer name a customer (their `customer_id` becomes null); their receipts are kept as issued. If a payer saved cards with this business under the customer's current email, the deletion also removes those cards, queues their deletion at the payment gateway, and closes the payer's saved-cards account, erasing the email, name, phone and address kept on it. And every card saved for the customer through the Developer API is deleted too, removed ones and their consent records included, and each one that may still be stored at the payment gateway is queued for deletion there. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List saved customer payment methods",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}/payment-methods",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}",
                                "payment-methods"
                            ]
                        },
                        "description": "Required API scope: customers:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists locally saved payment method display records and available billing details for a merchant-owned customer. Billing details are decrypted only for this authorized response. Card PAN, CVV, payment tokens, and internal billing provenance are never returned. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get the Saved cards status",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/saved-cards",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "saved-cards"
                            ]
                        },
                        "description": "Required API scope: customers:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nWhether the business can save and charge customers' cards. `state` is `unavailable` (not offered to this business), `off`, `pending` (being switched on), `on` or `turning_off`; `available` says whether cards can be saved and charged now. While `state` is `off`, `activation_url` is the link the business owner opens, signed in to ZenythPay, to accept the Saved cards fees and switch it on; no API call can accept for them. `paused_reason` is `three_ds_required`, and `available` false, while `state` is `on` or `pending`, Saved cards is open to live businesses, and the business requires 3-D Secure, which saved cards don't support yet. It is null otherwise, including while Saved cards is paused for every business. A location answers its business's status. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List a customer's saved cards",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}/saved-cards?limit=20",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}",
                                "saved-cards"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                }
                            ]
                        },
                        "description": "Required API scope: customers:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists a customer's saved cards, newest first, 20 a page. Removed and failed cards are left out; read one by its id. Cards stay listed while the business has Saved cards off, with `available` false. Never the card number, a token or the consent words. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a customer's saved card",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}/saved-cards/{{customer_card_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}",
                                "saved-cards",
                                "{{customer_card_id}}"
                            ]
                        },
                        "description": "Required API scope: customers:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReads one of a customer's saved cards, removed ones included (`status: removed`). `available` is true only for a saved card while the business has Saved cards on. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Remove a customer's saved card",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}/saved-cards/{{customer_card_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}",
                                "saved-cards",
                                "{{customer_card_id}}"
                            ]
                        },
                        "description": "Required API scope: customers:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nRemoves a customer's saved card: no new charge can start with it, a charge of it that had already started may still go through, and its stored record is queued for deletion. The answer is the card, `status: removed`. Removing a removed card answers the same. Works whether or not the business has Saved cards on. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires customers:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Save a customer's card without charging it",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/customers/{{customer_id}}/saved-cards",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "customers",
                                "{{customer_id}}",
                                "saved-cards"
                            ]
                        },
                        "description": "Required API scope: customers:write and payments:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nDeveloper API only. Verifies the customer's card with no charge and saves it in the same request, under the consent given here. Refused with nothing sent, as a charge's `save_card`: 409 `saved_cards_unavailable`, `card_already_saved` (with `saved_card_id` and `consent_type`) or `saved_cards_limit_reached`; 409 `location_off` when the key's location can't take payments right now, or `app_payments_off` when the business takes card-terminal payments only or is moving to another processor; 404 \"Customer not found.\". `installment_number` is refused: a check is not a payment of a plan. Answers 201 with the saved card; 402 `card_declined` when the card is declined; 422 `card_not_verified` when the card can't be used; 502 when it couldn't be saved and nothing was kept (try again); 202 with the card `saving` when the answer from the card network is not clear, until our checks settle it as `saved` or `failed`. Every check counts toward the per-minute attempt budget it shares with customer charges (per business owner, acting location and IP); only declines count toward the failed-attempt limit, they expire on their own, and a saved card doesn't clear them. Over either, 429 with `Retry-After`: nothing is written or sent and the Idempotency-Key stays unspent. The same `Idempotency-Key` and body answer the card as it is now (`Idempotency-Replayed: true`), even if the location was switched off since: 200 with the card, `saving` while the first request is still waiting for its answer; with another body it is 409. After a 402, 422 or 502 nothing was kept, so the same key sends a new check. Requires customers:write and payments:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        },
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"payment_token\": \"00000000-000000-000000-000000000000\",\n    \"card\": {\n        \"type\": \"visa\",\n        \"first6\": \"411111\",\n        \"last4\": \"1111\",\n        \"exp_month\": 12,\n        \"exp_year\": 2030\n    },\n    \"billing_details\": {\n        \"name\": \"Pat Customer\",\n        \"country\": \"US\",\n        \"postal_code\": \"60601\"\n    },\n    \"consent\": {\n        \"type\": \"business_unscheduled\",\n        \"text\": \"I agree that Example Co may charge this card for my orders when I am not present.\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Invoices",
            "item": [
                {
                    "name": "List merchant invoices",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices?limit=20&cursor={{invoice_next_cursor}}&term={{invoice_search_term}}&from={{invoice_from}}&to={{invoice_to}}&status={{invoice_status}}&customer_id={{invoice_customer_id}}&overdue={{invoice_overdue}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "{{invoice_next_cursor}}",
                                    "description": "Use the next_cursor returned by the previous response. Leave empty for the first page."
                                },
                                {
                                    "key": "term",
                                    "value": "{{invoice_search_term}}",
                                    "description": "Optional search term matched against description, recipient email, status, customer first_name, customer last_name, customer email, or due date when the term is YYYY-MM-DD."
                                },
                                {
                                    "key": "from",
                                    "value": "{{invoice_from}}",
                                    "description": "Optional inclusive invoice due-date range start in YYYY-MM-DD format."
                                },
                                {
                                    "key": "to",
                                    "value": "{{invoice_to}}",
                                    "description": "Optional inclusive invoice due-date range end in YYYY-MM-DD format."
                                },
                                {
                                    "key": "status",
                                    "value": "{{invoice_status}}",
                                    "description": "Optional exact invoice status filter: draft, sent, processing, paid or canceled."
                                },
                                {
                                    "key": "customer_id",
                                    "value": "{{invoice_customer_id}}",
                                    "description": "Optional filter to one customer of this merchant. Another merchant's customer returns 422."
                                },
                                {
                                    "key": "overdue",
                                    "value": "{{invoice_overdue}}",
                                    "description": "Set to 1 for sent invoices due before today (UTC), the hosted page's past-due rule."
                                }
                            ]
                        },
                        "description": "Required API scope: invoices:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists invoices for an accessible merchant using newest-first cursor pagination for infinite loading. The optional term searches description, recipient email, status, customer first_name, customer last_name, customer email, and due date when the term is YYYY-MM-DD. Optional from and to filters apply an inclusive due-date range; `date` is refused (422), so use them instead. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant invoice",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices/{{invoice_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices",
                                "{{invoice_id}}"
                            ]
                        },
                        "description": "Required API scope: invoices:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns one invoice for an accessible merchant, including related customer and transaction details when present. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant invoice summary",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices/summary",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices",
                                "summary"
                            ]
                        },
                        "description": "Required API scope: invoices:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns invoice count, total invoice amount, paid invoice count, paid invoice amount, and paid rate for an accessible merchant. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create invoice",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"send\": false,\n    \"amount\": \"25.50\",\n    \"description\": \"Implementation services\",\n    \"due_date\": \"2027-06-30\",\n    \"customer_id\": \"{{customer_id}}\",\n    \"available_payment_methods\": [\"apple_pay\", \"google_pay\", \"card\"]\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices"
                            ]
                        },
                        "description": "Required API scope: invoices:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCreates an invoice for either an existing customer of this business or a recipient email. Omit `send` or set it to false to create a draft. Set `send` to true to create and send it in one step, returning status `sent` and e-mailing the invoice to its recipient. If recording the send fails, invoice creation also rolls back. `available_payment_methods` is a nonempty set of methods for this invoice that can't be changed later; Apple Pay or Google Pay requires `card`. Omission enables every method currently offerable. `ach` is offered to a sandbox merchant with no acceptance, and to a live merchant only after they accept its service fees and activation is confirmed; the merchant turns ACH on in the dashboard. For any other merchant, omission returns `apple_pay`, `google_pay`, `card` and an explicit `ach` is rejected with 422. A stored invoice may retain `ach`, but for a live merchant it neither offers nor accepts ACH until activation is confirmed. A payer's device may still not show a wallet it doesn't support. The invoice is not payable until it is sent. With `send` true the send's rules apply first, and a refusal creates nothing. The credential's business owner must have a verified email (403 `email_not_verified`). A Sandbox business emails invoices only to its own team, the owner and accepted members by addresses their accounts verified (422 `sandbox_recipient_not_allowed`). A Production business's invoice emails, sends and resends alike, are capped at ten a day per recipient, three hundred a day per location of the business (or the business, if it has no locations) and sixty an hour for the business owner, shared with payment links (429 with `Retry-After`). The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update draft invoice",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": \"42.75\",\n    \"description\": \"Updated implementation services\",\n    \"due_date\": \"2027-07-15\",\n    \"email\": \"updated-recipient@example.com\"\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices/{{invoice_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices",
                                "{{invoice_id}}"
                            ]
                        },
                        "description": "Required API scope: invoices:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nUpdates a draft invoice. Sent, processing, paid, and canceled invoices cannot be edited. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Delete draft invoice",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices/{{invoice_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices",
                                "{{invoice_id}}"
                            ]
                        },
                        "description": "Required API scope: invoices:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nDeletes a draft invoice. Sent, processing, paid, and canceled invoices cannot be deleted. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Send or resend invoice",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices/{{invoice_id}}/send",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices",
                                "{{invoice_id}}",
                                "send"
                            ]
                        },
                        "description": "Required API scope: invoices:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nSends a draft invoice, or sends a sent invoice again. Each send e-mails the invoice to its recipient with a new payment link; a resend's link replaces the earlier one, which stops working. Processing, paid, and canceled invoices cannot be sent or resent. The credential's business owner must have a verified email (403 `email_not_verified`). A Sandbox business emails invoices only to its own team, the owner and accepted members by addresses their accounts verified (422 `sandbox_recipient_not_allowed`). A Production business's invoice emails, sends and resends alike, are capped at ten a day per recipient, three hundred a day per location of the business (or the business, if it has no locations) and sixty an hour for the business owner, shared with payment links (429 with `Retry-After`). The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:write. A draft whose recipient is changed while it is being sent is refused with 409 and sent to no one.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Cancel sent invoice",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/invoices/{{invoice_id}}/cancel",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "invoices",
                                "{{invoice_id}}",
                                "cancel"
                            ]
                        },
                        "description": "Required API scope: invoices:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCancels a sent invoice and invalidates its public payment link. Draft invoices should be deleted instead of canceled. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires invoices:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Payment Links",
            "item": [
                {
                    "name": "List merchant payment links",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-links?limit=20&cursor={{payment_link_next_cursor}}&term={{payment_link_search_term}}&from={{payment_link_from}}&to={{payment_link_to}}&status={{payment_link_status}}&overdue={{payment_link_overdue}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-links"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "{{payment_link_next_cursor}}"
                                },
                                {
                                    "key": "term",
                                    "value": "{{payment_link_search_term}}"
                                },
                                {
                                    "key": "from",
                                    "value": "{{payment_link_from}}",
                                    "description": "Optional inclusive payment-link due-date range start in YYYY-MM-DD format."
                                },
                                {
                                    "key": "to",
                                    "value": "{{payment_link_to}}",
                                    "description": "Optional inclusive payment-link due-date range end in YYYY-MM-DD format."
                                },
                                {
                                    "key": "status",
                                    "value": "{{payment_link_status}}",
                                    "description": "Optional exact payment-link status filter: draft, sent, processing, paid or canceled."
                                },
                                {
                                    "key": "overdue",
                                    "value": "{{payment_link_overdue}}",
                                    "description": "Set to 1 for sent payment-links due before today (UTC), the hosted page's past-due rule."
                                }
                            ]
                        },
                        "description": "Required API scope: payment_links:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists payment links for an accessible merchant using newest-first cursor pagination. The optional term searches description, payer email after payment, status, customer first_name, customer last_name, customer email, and due date when the term is YYYY-MM-DD. Optional from and to filters apply an inclusive due-date range; `date` is refused (422), so use them instead. `customer_id` is refused (422) too, since a payment link has no customer until it is paid. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payment_links:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant payment link",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-links/{{payment_link_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-links",
                                "{{payment_link_id}}"
                            ]
                        },
                        "description": "Required API scope: payment_links:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns one payment link of this business. `payment_url` is null here; the link's URL is returned only when the link is created or shared. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payment_links:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create payment link",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-links",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-links"
                            ]
                        },
                        "description": "Required API scope: payment_links:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCreates a payment link, already sent, and returns its URL in `payment_url`. Only this response and a share return `payment_url`, so store it. The link's payment methods can't be changed later. Apple Pay or Google Pay requires `card`. Omission enables every method currently offerable. `ach` is offered to a sandbox merchant with no acceptance, and to a live merchant only after they accept its service fees and activation is confirmed; the merchant turns ACH on in the dashboard. For any other merchant, omission returns `apple_pay`, `google_pay`, `card` and an explicit `ach` is rejected with 422. A stored invoice may retain `ach`, but for a live merchant it neither offers nor accepts ACH until activation is confirmed; runtime wallet capability may further hide a wallet. The merchant does not provide customer_id or email at creation time; payer email is collected optionally when the public link is paid. Each link created here also e-mails the business owner a \"your link is ready\" message with the link, so the owner's e-mail address must be verified (403 `email_not_verified`). In a live business it counts against two limits: 60 an hour for the business owner, shared with every invoice e-mail and payment link sent as the owner at any of their businesses, from the dashboard or the API; and 300 a day for this location of the business (or the business, if it has no locations), shared with its invoice e-mails. Over either limit the request answers 429 with `Retry-After`. Sandbox businesses aren't counted. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payment_links:write.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": \"25.50\",\n    \"description\": \"Hosted checkout\",\n    \"due_date\": \"2027-07-31\",\n    \"available_payment_methods\": [\"apple_pay\", \"google_pay\", \"card\"]\n}"
                        },
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update payment link",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-links/{{payment_link_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-links",
                                "{{payment_link_id}}"
                            ]
                        },
                        "description": "Required API scope: payment_links:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nUpdates an unpaid, uncanceled payment link. Only sent payment links can be edited; processing, paid, and canceled payment links are locked. Merchants may change amount, currency, description, and due_date, but cannot assign a customer or recipient email. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payment_links:write.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": \"42.75\",\n    \"currency\": \"USD\",\n    \"description\": \"Updated hosted checkout\",\n    \"due_date\": \"2027-08-15\"\n}"
                        },
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Share payment link again",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-links/{{payment_link_id}}/share",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-links",
                                "{{payment_link_id}}",
                                "share"
                            ]
                        },
                        "description": "Required API scope: payment_links:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nMakes a new link for a sent payment link and returns it in `payment_url`; the earlier link stops working. Processing, paid, and canceled payment links cannot be shared again. Each share also e-mails the business owner a \"your link is ready\" message with the new link, under the same rules and limits as creation: the owner's e-mail address must be verified (403 `email_not_verified`), and in a live business each share counts against the 60 an hour for the owner and the 300 a day for the link's location (429 with `Retry-After`); sandbox businesses aren't counted. A link that is not sent when the share starts is refused with 409 even if a declined payment makes it sent again before the share would happen. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payment_links:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Cancel payment link",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payment-links/{{payment_link_id}}/cancel",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payment-links",
                                "{{payment_link_id}}",
                                "cancel"
                            ]
                        },
                        "description": "Required API scope: payment_links:write. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nCancels a sent payment link and invalidates its public token. Paid, processing, and already-canceled payment links cannot be canceled. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payment_links:write.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Payouts",
            "item": [
                {
                    "name": "List merchant payouts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payouts?limit=20&cursor={{payout_next_cursor}}&date_from={{payout_date_from}}&date_to={{payout_date_to}}&amount_min={{payout_amount_min}}&amount_max={{payout_amount_max}}&kind={{payout_kind}}&card_brand={{payout_card_brand}}&search={{payout_search}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payouts"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "{{payout_next_cursor}}",
                                    "description": "Use the next_cursor returned by the previous response. Leave empty for the first page."
                                },
                                {
                                    "key": "date_from",
                                    "value": "{{payout_date_from}}",
                                    "description": "Optional first day the payout was sent, inclusive, in YYYY-MM-DD format."
                                },
                                {
                                    "key": "date_to",
                                    "value": "{{payout_date_to}}",
                                    "description": "Optional last day the payout was sent, inclusive, in YYYY-MM-DD format."
                                },
                                {
                                    "key": "amount_min",
                                    "value": "{{payout_amount_min}}",
                                    "description": "Optional smallest amount in dollars, compared with the size of the amount."
                                },
                                {
                                    "key": "amount_max",
                                    "value": "{{payout_amount_max}}",
                                    "description": "Optional largest amount in dollars, compared with the size of the amount."
                                },
                                {
                                    "key": "kind",
                                    "value": "{{payout_kind}}",
                                    "description": "Optional: payout or withdrawal."
                                },
                                {
                                    "key": "card_brand",
                                    "value": "{{payout_card_brand}}",
                                    "description": "Optional: visa, mastercard, amex, discover or other."
                                },
                                {
                                    "key": "search",
                                    "value": "{{payout_search}}",
                                    "description": "Optional: a card's last 4 digits, an amount, or the start of the payout's reference."
                                }
                            ]
                        },
                        "description": "Required API scope: payouts:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nLists the payouts sent to the merchant's bank account, and the withdrawals taken back from it, newest sent first, with cursor pagination. A payout is one transfer the processor sent; it has the day it was sent and the day it usually arrives by, and is never a confirmation that the bank received it. A list item carries no `payments`; get one payout to read them. Payouts exist for live merchants only, so a sandbox key answers 409. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payouts:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get merchant payout",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            },
                            {
                                "key": "X-ZenythPay-Merchant",
                                "value": "{{platform_merchant}}",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/payouts/{{payout_id}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "payouts",
                                "{{payout_id}}"
                            ]
                        },
                        "description": "Required API scope: payouts:read. The merchant is resolved from the credential; send its matching environment. With a platform key, also turn on X-ZenythPay-Merchant.\n\nReturns one payout with the card payments it includes. The payments are listed only when all of them are known (`payments_status` is `complete`); otherwise `payments` is empty. A key for all locations opens a payout of any location of the business. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires payouts:read.",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Events",
            "item": [
                {
                    "name": "List webhook events",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/merchant/events?limit=20&cursor=&since=",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "merchant",
                                "events"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The previous page's pagination.next_cursor. Leave empty for the first page.",
                                    "disabled": true
                                },
                                {
                                    "key": "since",
                                    "value": "",
                                    "description": "A pagination.checkpoint this list gave you. Leave empty to start from the newest events.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Required API scope: events:read. The merchant is resolved from the credential; send its matching environment. Platform keys can't call this.\n\nThis business's events from the last 30 days, newest first, each exactly as its webhooks carried it (`id` is the `ZenythPay-Event-Id` header). Test events are never listed. To catch up after webhooks you missed, follow `next_cursor` until `has_more` is `false` and keep the first page's `pagination.checkpoint`, which every page of that scan carries. Next time, list with `since` set to it: you get every event published after it, newest first, including events that failed, arrived out of order or were recorded late, and a new checkpoint. Events belong to the whole business, so a key for one location answers 409. The merchant is resolved from the credential. Merchant selection through request fields is rejected with 422. Requires events:read.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{partner_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Developer Platform",
            "item": [
                {
                    "name": "List connected merchants",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/merchants",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "merchants"
                            ]
                        },
                        "description": "Required API scope: merchants:read. Send your platform key and its environment; this call names no merchant.\n\nThe merchants connected to your developer account, newest first, test merchants included. Each shows its business name, whether it is a test merchant, and its `status`: `live`, `approved`, `submitted`, `more_info_needed`, `declined` or `joined`. `key_works` says whether a key of each environment can act for the merchant now. `turned_off_at` is set when the merchant's access to you was turned off. `locations` lists the ids to send as `location_id` when you create a payment, invoice or payment link for a business with several locations; it is null for any other business, and reads the business of the key's environment. No owner details are shown. Needs a key with `merchants:read`. This call names no merchant, so it spends your account's budget for the key's environment and no merchant's. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a connected merchant",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/merchants/{{platform_merchant}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "merchants",
                                "{{platform_merchant}}"
                            ]
                        },
                        "description": "Required API scope: merchants:read. Send your platform key and its environment; this call names no merchant.\n\nOne merchant connected to your developer account, with the same fields as the list. A merchant that does not exist and one connected to another developer answer alike. Needs a key with `merchants:read`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List applications",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications"
                            ]
                        },
                        "description": "Required API scope: applications:read. Send your platform key and its environment; this call names no merchant.\n\nYour applications, newest first: each one's id, status, business name, how it was started and, once the owner joined, the merchant's id. Applications that are not yours, or that our team moved away from you, are never listed. Needs a key with `applications:read`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get an application",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}"
                            ]
                        },
                        "description": "Required API scope: applications:read. Send your platform key and its environment; this call names no merchant.\n\nThe application as you may read it: what you entered, less what only the merchant or our team holds. An SSN, a date of birth and the business tax ID are never read back: `write_only` says which are on file. `more_info_requests` lists what our review team asked the merchant for. Documents are never listed. `merchant` is the merchant's id once the owner joined. `started_via` says how it was started. An id that is unknown, another developer's, not an application id, or no longer yours answers the same 404. Needs a key with `applications:read`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Start an application",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}",
                                "description": "Optional. A retry with the same key and request answers the first answer again, for 24 hours.",
                                "disabled": true
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"business_name\": \"Synthetic Bakery\",\n    \"owner_first_name\": \"Pat\",\n    \"owner_last_name\": \"Owner\",\n    \"owner_email\": \"owner@example.com\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nStarts an application for a business: its name and the owner's name and email, held to the same rules as any application start. In production it starts the application for the real business; nobody is emailed until you send it. A production start needs your company profile and a security method first: until then it answers 403 \"Add your company profile and a security method before boarding real merchants.\" before anything is written, and spends none of the hour's starts. A login whose email is not verified gets 403 `email_not_verified` first. In sandbox it starts a test application, kept apart from real ones: checked by the same rules, but only against your own test applications, and nobody is emailed. Starts are limited to 20 an hour per developer per environment, through the API and the portal together. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Fill in an application",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"currentStep\": \"business\",\n    \"business\": {\n        \"dbaName\": \"Synthetic Bakery\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nSaves sections of the application with the same rules and messages as the merchant's own save, and answers the application. Send `currentStep` with every save of application fields; a field left out keeps its value. Bank details, pricing, the legal acceptances, the business category, ID document pointers and submitting are the merchant's or our team's, each refused with its own sentence. After the merchant joins, the owner's identity is theirs alone. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Upload a document",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}",
                                "description": "Optional. A retry with the same key and request answers the first answer again, for 24 hours.",
                                "disabled": true
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "idDocumentType",
                                    "value": "drivers_license",
                                    "type": "text"
                                },
                                {
                                    "key": "side",
                                    "value": "front",
                                    "type": "text"
                                },
                                {
                                    "key": "file",
                                    "type": "file",
                                    "src": []
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}/documents",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}",
                                "documents"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nUploads a document to the application, with the merchant's own file rules and its limit of 10 files per document. The answer is given once: a document is never listed or downloaded back. Bank proof is the merchant's alone, and uploads are taken only until the merchant joins and only while the application is a draft. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Change the owner email",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"owner_email\": \"updated-owner@example.com\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}/owner-email",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}",
                                "owner-email"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nChanges whose application this is, until the merchant joins, under the same checks as a start; earlier links stop working and nothing is sent, so the status is `draft` again. The email the owner already has changes nothing. Limited to 5 attempts a day per application. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Send an application to the merchant",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}",
                                "description": "Optional. A retry with the same key and request answers the first answer again, for 24 hours.",
                                "disabled": true
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}/send",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}",
                                "send"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nEmails the owner a link to the application. In sandbox nobody is emailed: the answer's `preview_url` is a read-only preview of what the owner would see (`POST /api/v1/platform/application-previews`), handed out by this answer only. A send before that link expires changes nothing and has no `preview_url`, and neither does a replay under the same `Idempotency-Key`: resend for a new link. In production the owner gets the link by email, in an email that names your company; the link is never in the answer. A production send needs your company profile and a security method first: until then it answers 403 \"Add your company profile and a security method before boarding real merchants.\" before anything is looked up, counted or sent. A login whose email is not verified gets 403 `email_not_verified` first. Links are limited to 5 a day per application, and to 5 a day per owner's inbox across all your applications in each environment: addresses that differ only by a +tag, or by dots in a Gmail address, count as one inbox. The owner's sign-in codes, and the link we email when someone signs up or resets a password with the owner's address, count too; a new link the owner asks for themselves has a limit of its own. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Send an application again",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}",
                                "description": "Optional. A retry with the same key and request answers the first answer again, for 24 hours.",
                                "disabled": true
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}/resend",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}",
                                "resend"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nEmails the owner a new link to an application already sent; the earlier link stops working. In sandbox nobody is emailed: the answer's `preview_url` is the new preview link, handed out by this answer only; a replay under the same `Idempotency-Key` has none: resend again for a new link. In production the owner gets the new link by email, in an email that names your company; the link is never in the answer. A production resend needs your company profile and a security method first: until then it answers 403 \"Add your company profile and a security method before boarding real merchants.\" before anything is looked up, counted or sent. A login whose email is not verified gets 403 `email_not_verified` first. Links are limited to 5 a day per application, and to 5 a day per owner's inbox across all your applications in each environment: addresses that differ only by a +tag, or by dots in a Gmail address, count as one inbox. The owner's sign-in codes, and the link we email when someone signs up or resets a password with the owner's address, count too; a new link the owner asks for themselves has a limit of its own. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Simulate what happens next to a test application",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}",
                                "description": "Optional. A retry with the same key and request answers the first answer again, for 24 hours.",
                                "disabled": true
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"outcome\": \"submitted\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}/simulate",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}",
                                "simulate"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nSandbox only. Moves a test application as the merchant or our review team would, so you can build against every status without a real merchant. Each `outcome` follows only certain statuses: `joined` follows `sent`; `submitted` follows `joined` or `more_info_needed`; `more_info_needed` follows `submitted` or `more_info_needed` and adds a request to `more_info_requests`; `approved` and `declined` follow `submitted`. `approved` connects the application to a test merchant, named in `merchant`: a new one named for the business while you have fewer than 10, otherwise the oldest of your test merchants that no test application uses and our team has not turned off (resetting a test merchant frees it). The application reads `approved` until that test merchant is ready, then `live`. A test merchant takes cards once your email is verified. Approving an approved application again retries setting up its test merchant and changes nothing else. A production key answers 403 \"Simulate works only with test applications in sandbox.\". Nothing is emailed. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Make an onboarding session for the merchant",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{partner_idempotency_key}}",
                                "description": "Optional. A retry with the same key and request answers the first answer again, for 24 hours.",
                                "disabled": true
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/applications/{{platform_application}}/onboarding-sessions",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "applications",
                                "{{platform_application}}",
                                "onboarding-sessions"
                            ]
                        },
                        "description": "Required API scope: applications:write. Send your platform key and its environment; this call names no merchant.\n\nA link you hand the application's owner, for your own app to open, good for 48 hours. Send the application first: a session is made only for an application sent to its owner, or one they have joined. The link alone signs nobody in: when the owner opens it we email a 6-digit code to the owner's address, good for 10 minutes (opening the link again sends a new one), and the owner finishes with that code and a password of their own (`POST /api/v1/platform/onboarding-sessions/open` and `/claim`). An owner who already has a ZenythPay login is sent to sign in instead. A new session, or a change of the owner's email, ends the application's earlier sessions. `url` is in this answer only: a replay under the same `Idempotency-Key` has none, so ask for a new session if you lost it. In sandbox nobody is emailed: `url` is the sent test application's read-only preview (`POST /api/v1/platform/application-previews`), good for 48 hours, and it replaces the earlier preview link. A production session needs your company profile and a security method first: until then it answers 403 \"Add your company profile and a security method before boarding real merchants.\" before anything is looked up or made. A login whose email is not verified gets 403 `email_not_verified` first. Needs a key with `applications:write`. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "List your webhook events",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "X-ZenythPay-Environment",
                                "value": "{{partner_environment}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api/v1/platform/events?limit=20&cursor=&since=",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api",
                                "v1",
                                "platform",
                                "events"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "20"
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "disabled": true
                                },
                                {
                                    "key": "since",
                                    "value": "",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Required API scope: events:read. Send your platform key and its environment; this call names no merchant.\n\nYour events of the key's environment from the last 30 days, newest first, each exactly as its webhook carried it (`id` is the `ZenythPay-Event-Id` header). Test events are never listed. An event about a merchant or an application you may no longer see (its merchant's connection turned off or gone, the application no longer yours) is left out, except a connection's own `connection.revoked`; so a page may hold fewer events than `limit`, even none, while `pagination.has_more` is `true`. To catch up, follow `next_cursor` until `has_more` is `false` and keep the first page's `pagination.checkpoint`, which every page of that scan carries. Next time, list with `since` set to it: you get every event published after it, newest first, including events that failed, arrived out of order or were recorded late, and a new checkpoint. When our team turns a merchant's access back on after that checkpoint, its events that were left out show again below it, so that `since` answers 422: list again without it, every page, and keep the new checkpoint. Needs a key with `events:read`. This call names no merchant, so it spends your account's budget for the key's environment and no merchant's. Every answer is `Cache-Control: no-store, private`.\n",
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{platform_api_key}}",
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ]
        }
    ],
    "variable": [
        {
            "key": "partner_environment",
            "value": "sandbox",
            "type": "string"
        },
        {
            "key": "platform_merchant",
            "value": "cm_Ab12Cd34",
            "type": "string"
        },
        {
            "key": "base_url",
            "value": "https://api.zenythpay.com",
            "type": "string"
        },
        {
            "key": "transaction_next_cursor",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_search_term",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_from",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_to",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_type",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_status",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_source",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_payment_type",
            "value": "",
            "type": "string"
        },
        {
            "key": "partner_api_key",
            "value": "",
            "type": "string",
            "secret": true
        },
        {
            "key": "transaction_id",
            "value": "",
            "type": "string"
        },
        {
            "key": "transaction_date",
            "value": "",
            "type": "string"
        },
        {
            "key": "partner_idempotency_key",
            "value": "",
            "type": "string"
        },
        {
            "key": "customer_id",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_next_cursor",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_search_term",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_status",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_type",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_source",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_payment_type",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_date",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_operation_id",
            "value": "",
            "type": "string"
        },
        {
            "key": "refund_amount",
            "value": "5.00",
            "type": "string"
        },
        {
            "key": "refund_order_id",
            "value": "REF-1001",
            "type": "string"
        },
        {
            "key": "customer_next_cursor",
            "value": "",
            "type": "string"
        },
        {
            "key": "customer_search_term",
            "value": "",
            "type": "string"
        },
        {
            "key": "customer_card_id",
            "value": ""
        },
        {
            "key": "invoice_next_cursor",
            "value": "",
            "type": "string"
        },
        {
            "key": "invoice_search_term",
            "value": "",
            "type": "string"
        },
        {
            "key": "invoice_from",
            "value": "",
            "type": "string"
        },
        {
            "key": "invoice_to",
            "value": "",
            "type": "string"
        },
        {
            "key": "invoice_status",
            "value": ""
        },
        {
            "key": "invoice_customer_id",
            "value": ""
        },
        {
            "key": "invoice_overdue",
            "value": ""
        },
        {
            "key": "invoice_id",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_link_next_cursor",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_link_search_term",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_link_from",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_link_to",
            "value": "",
            "type": "string"
        },
        {
            "key": "payment_link_status",
            "value": ""
        },
        {
            "key": "payment_link_overdue",
            "value": ""
        },
        {
            "key": "payment_link_id",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_next_cursor",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_date_from",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_date_to",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_amount_min",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_amount_max",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_kind",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_card_brand",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_search",
            "value": "",
            "type": "string"
        },
        {
            "key": "payout_id",
            "value": "",
            "type": "string"
        },
        {
            "key": "platform_api_key",
            "value": "",
            "type": "string",
            "secret": true
        },
        {
            "key": "platform_application",
            "value": "app_Ab12Cd34",
            "type": "string"
        }
    ]
}
