Charges
Create a charge
Create charges to collect payments from your customers for the goods or services you provide.
POST
https://{environment}.straddle.io
/
v1
/
charges
Authorizations
Authorization
string
headerrequiredUse 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
requiredPaykey.
description
string
requiredDescription.
amount
integer
requiredAmount.
currency
string
requiredCurrency.
payment_date
string
requiredPayment date.
consent_type
enum<string>
requiredAvailable options:
internet
, signed
device
object
requiredexternal_id
string
requiredExternal id.
config
object
requiredmetadata
object | null
Metadata.
Response
201 - text/plain
meta
object
requiredresponse_type
enum<string>
requiredAvailable options:
object
, array
, error
, none
data
object
required