Skip to main content
POST
/
checkout
/
sessions
Criar checkout session
curl --request POST \
  --url https://checkout-api.sandbox.z2pay.com/checkout/sessions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "linkId": "<string>",
  "customer": {
    "name": "<string>",
    "email": "jsmith@example.com",
    "document": "<string>",
    "phone": "<string>",
    "address": {
      "zipCode": "<string>",
      "street": "<string>",
      "number": "<string>",
      "complement": "<string>",
      "neighborhood": "<string>",
      "city": "<string>",
      "state": "<string>",
      "country": "BR"
    }
  },
  "metadata": {}
}
'

Authorizations

x-api-key
string
header
required

CheckoutCredential — sk_* (backend) / pk_* (frontend público)

Body

application/json
Minimum string length: 1
customer
object
metadata
object

Response

Session criada