Skip to main content
POST
Create a checkout

Authorizations

Authorization
string
header
required

Bearer credential for the public API: a live COPE API key (ck_live_*; keys issued earlier as cope_sk_live_* keep working). Dashboard sign-in tokens are not accepted.

Headers

Idempotency-Key
string
required

Required. At most 255 characters of valid UTF-8 with no NUL byte. A retry that carries the same key and the same body returns the original response instead of performing the write a second time. The same key with a different body is refused with 409 idempotency_conflict. Keys are remembered for 24 hours. A returned original response carries the header Idempotent-Replayed: true.

Maximum string length: 255

Body

application/json
buyer_identity
object
required
currency
string
required
external_reference
string
required
Required string length: 1 - 255
lines
object[]
required
Minimum array length: 1
checkout
object
locale
string
metadata
object

Your own keys. external_reference, intended_payment_method and the keys COPE reserves are refused inside it with reserved_metadata_key.

Response

Successful response

data
object
required