Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Enter your API token

Path Parameters

paymentId
string
required
Maximum string length: 32

Body

application/json

captureAmount is not yet supported and is ignored. Every capture is for the full authorized amount. Send an empty body.

captureAmount
integer

Not yet supported. If sent, it is ignored and the full authorized amount is captured.

Required range: x >= 1
Example:

12997

Response

OK

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.