POST

https://{environment}.straddle.io

/
v1
/
charges

Authorizations

Authorization
string
headerrequired

Use your Straddle API Key in the Authorization header as Bearer <token> to authorize API requests.

Headers

Straddle-Account-Id
string

For use by platforms to specify an account id and set scope of a request.

Request-Id
string

Optional client generated identifier to trace and debug a request.

Correlation-Id
string

Optional client generated identifier to trace and debug a series of requests.

Body

paykey
string
required

Paykey.

description
string
required

Description.

amount
integer
required

Amount.

currency
string
required

Currency.

payment_date
string
required

Payment date.

consent_type
enum<string>
required
Available options:
internet,
signed
device
object
required
external_id
string
required

External id.

config
object
required
metadata
object | null

Metadata.

Response

201 - text/plain
meta
object
required
response_type
enum<string>
required
Available options:
object,
array,
error,
none
data
object
required