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

Only required when performing a partial refund. For a full refund, this object can be omitted.

refundAmount
integer

Amount to refund in the smallest currency unit.

Required range: x >= 1
Example:

12997

Response

OK. status is normally REFUNDED. If the provider hasn't confirmed the refund yet, status is PENDING: this describes the refund, not the payment, which stays CAPTURED. Don't resend the refund. If it succeeds you receive a PAYMENT_REFUNDED webhook; if it fails no webhook is sent and the payment stays CAPTURED. See If the refund outcome is not yet known.

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.