Skip to main content
POST
Create a payment transaction

Authorizations

Authorization
string
header
default:BASIC <Meld API Key>
required

Headers

Meld-Version
string

Dated API version to use for this request, e.g. 2026-02-03.

Example:

"2026-02-03"

X-Idempotency-Key
string<uuid>
Meld-Passthrough-Reference
string
Meld-Passthrough-Key-Id
string
Meld-Passthrough-Key-Public
string
Meld-Passthrough-Key-Private
string
Meld-Passthrough-Oauth
string

Body

application/json
serviceProvider
enum<string>
required

The service provider used for this transaction.

Available options:
STRIPE
sourceAmount
string
required

Amount intended to be collected by this payment

Minimum string length: 1
Example:

"10.50"

sourceCurrencyCode
string
required

Three-letter ISO currency code, in lowercase. Must be a supported currency

Minimum string length: 1
Example:

"USD"

3ds
object

3ds settings

capture
boolean

Should the payment be captured immediately, if set to false an authorization will be performed instead

customer
any

Information about your customer

customerId
string

Meld's internal Id for the Customer

description
string

A description about the transaction

externalCustomerId
string

Your (optional) Id for this customer, for example an id or reference from your database which you may supply during customer creation

nonce
string

A payment method nonce is a secure, one-time-use reference to payment information. It's the key element that allows your server to communicate sensitive payment information to the service provider without ever touching the raw data.

paymentMethod
object

PaymentMethod objects represent your customer's payment instruments.

serviceProviderDetails
object

Provider specific details which may be provided for this transaction, if supported by the Service Provider.

Response

Payment transaction created successfully

transaction
object

Payment transaction information