Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Enter your API token

Headers

User-Agent
string

Body

application/json
amount
integer
required

Payment amount in the smallest currency unit (e.g., cents). Send a whole number: 0.00 and other values with decimals are rejected with 400. Use 0 with captureNow: false to validate a card without charging it; a successful validation leaves the payment AUTHORIZED, and it can't be captured, voided or refunded.

Required range: x >= 0
Example:

12997

currency
enum<string>
required

Three-letter ISO 4217 currency code. Currently only USD is supported.

Available options:
USD
Example:

"USD"

paymentMethod
object
required

The chosen payment method details (e.g., card).

merchantReference
string
required

Your reference for this payment, returned in responses and webhooks. Uniqueness is not enforced and it is not an idempotency key: sending the same value twice creates two payments. Payments can't be looked up by this value.

Example:

"PAYMENT-12345"

goodsType
enum<string>
required

Type of goods being purchased: PHYSICAL = tangible items, DIGITAL = non-physical items, MIXED = combination of both.

Available options:
PHYSICAL,
DIGITAL,
MIXED
Example:

"MIXED"

source
object
required

Details related to where the payment originated.

captureNow
boolean

Determines how the payment is processed. Default: false → Authorization only (funds reserved, must capture later). If true → Sale (authorize and capture in one step). null is rejected with 400. Must be false when amount is 0.

Example:

true

descriptor
string

Not currently passed to the customer's statement. On Paymend MIDs, the statement shows the domain of the store in source.storeId.

Example:

"MyStore Online"

productItems
object[]

List of product or service items included in this payment.

Example:
consumer
object

Consumer details such as name, email, phone.

billing
object

Billing address information.

shipping
object

Shipping address and recipient details.

previousFailures
object[]

Array of previous failed payment attempts with other providers.

Example:

Response

OK. status is AUTHORIZED, CAPTURED, or PENDING when Paymend couldn't complete the payment immediately and an attempt is in flight or scheduled. PENDING doesn't necessarily mean an attempt has failed: the final result arrives by webhook.

paymentId
string

Unique identifier for the payment generated by the system.

Maximum string length: 32
Example:

"pay_1234567890abcdef"

merchantReference
string

Reference passed in by the merchant for correlation.

Example:

"ORDER-12345"

amount
integer

Amount processed in the smallest currency unit.

Example:

12997

currency
enum<string>

ISO 4217 currency code used in the payment. Currently only USD is supported.

Available options:
USD
Example:

"USD"

status
enum<string>

Current state of the payment.

Available options:
PENDING,
AUTHORIZED,
CAPTURED,
REFUNDED,
VOIDED,
FAILED
Example:

"CAPTURED"

paymentMethod
object

The chosen payment method details (e.g., card). Sensitive fields are masked in responses.

captureNow
boolean

Determines how the payment is processed. Default: false → Authorization only (funds reserved, must capture later). If true → Sale (authorize and capture in one step).

Example:

true

descriptor
string

Not currently passed to the customer's statement. On Paymend MIDs, the statement shows the domain of the store in source.storeId.

Example:

"MyStore Online"

goodsType
enum<string>

Type of goods being purchased: PHYSICAL = tangible items, DIGITAL = non-physical items, MIXED = combination of both.

Available options:
PHYSICAL,
DIGITAL,
MIXED
Example:

"MIXED"

productItems
object[]

List of product or service items included in this payment.

Example:
consumer
object

Consumer details such as name, email, phone.

billing
object

Billing address information.

shipping
object

Shipping address and recipient details.

createdAt
string<date-time>

Timestamp when the payment was created.

Example:

"2024-01-15T10:30:00Z"

updatedAt
string<date-time>

Timestamp when the payment was last updated.

Example:

"2024-01-15T11:00:00Z"

transactions
object[]

Array of transaction attempts made for this payment.

Example:
source
object

Details related to where the payment originated.