Create a payment by submitting aDocumentation Index
Fetch the complete documentation index at: https://docs.paymend.com/llms.txt
Use this file to discover all available pages before exploring further.
POST request to /v1/payments.
Mandatory fields
The basic data required to create a payment relates to:- The value of the payment:
amountandcurrency - The payment method to be used: passed in the PaymentMethod object
- Payment identifiers:
- A merchant-defined unique identifier for the payment:
merchantReference - A Paymend-defined unique identifier for the store where the payment originated (eg. website):
source.storeId
- A merchant-defined unique identifier for the payment:
- The type of goods being purchased:
goodsType
Key fields
In addition to the details noted above which must be provided, we highly recommend passing the following details in all requests:- Who initiated the payment:
source.initiatedByis a valuable card-on-file parameter and is mandatory to enable asynchronous processing - Consumer and billing data: passed in the Consumer and Billing objects, respectively. These details increase the chances of approval and help with payment identification.
- Determine the authorization type: use the
captureNowfield to actively determine whether funds are authorized and captured in a single or separate requests.
Request
Example payment creation request (authorize and capture in one step):Response
Example success response (200 OK):

