post
https://api-sandbox.paymentlabs.io/checkouts
Creates a checkout: a request for one payment of a fixed amount from one buyer.
Use it from your server for every one-time payment. Send the buyer to links.checkout (hosted page), embed
links.embeddable in an iframe, or pass the checkout id to the Payin SDK. You can also charge a saved instrument or a
payment terminal yourself with /reference/charge-checkout.
Permission: Merchant Write.
Rules
alias,amount,currency,buyer.email,termsOfServiceUrlandprivacyPolicyUrlare required. Unknown fields are rejected.- The buyer is identified by
buyer.emailwithin your account. The first checkout for a new email creates the buyer;
later checkouts reuse it, sobuyerIdis stable per email. expiresAtaccepts a date or a date-time. The checkout is payable until 23:59:59 of that day inuserTimezone
(UTC by default). It defaults to one year from now and must not be in the past.- An
amountof0saves the buyer's card or bank account without charging it. The buyer must sign in, so
authenticationOptionsdefaults toAUTHENTICATED_ONLYand any other value is rejected.
The checkout starts in PENDING. Nothing is charged and no webhook is sent until a charge is attempted.
Errors
400 CURRENCY_NOT_ALLOWED: this currency is not enabled for your account. Use another currency or ask Payment Labs to enable it.400 MAXIMUM_AMOUNT_EXCEEDED: the amount is above your limit for this currency (maxAmount). Lower it or split the payment.400 VALIDATION_ERROR: a field is invalid.details.expiresAtwithINVALID_FIELD_DATEmeans the expiry date is in the past.
Ondetails.statementAlias:INVALID_CHARACTERS(a character other than letters, digits, spaces,.,,or-),
INVALID_FIELD_LENGTH_TOO_LONG(the descriptor would be over 22 characters with your prefix) orNOT_ALLOWED_FIELD
(soft descriptors are not enabled for your account, or not available for this checkout). Ondetails.threeDSecureMethod:
INVALID_FIELD_ENUM_TYPE(not a known method) orVALUE_NOT_IN_ALLOWED_LIST(the method is not enabled for your account).404 NOT_FOUND: your merchant account could not be loaded. Contact Payment Labs.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
