Payments
Operations related to payments and refunds
All endpoints require a JWT Bearer token in the Authorization header and an API key in the X-API-KEY header.
Base URL: https://payments.valpay.com.
POST /v1/payments/create
Create a new payment
Request body (required)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | |
|
| Yes | Store ID |
|
| No | API version number |
|
| Yes | Payment reference |
|
| Yes | Type of shopper interaction |
|
| No | Additional data for the payment |
|
| Yes | |
|
| Yes | Return URL after payment |
|
| Yes | Merchant account |
Responses
Status | Description |
|---|---|
| Payment created successfully |
| Bad request |
Response schema (2xx)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Whether the operation was successful |
|
| Yes | |
|
| Yes | Success message |
POST /v1/payments/refund
Refund a payment
Process a refund for a payment transaction. Note: The merchantAccount will be automatically added by middleware and should not be included in the request.
Request body (required)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Transaction ID of the payment to refund |
|
| No | An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms |
|
| Yes |
Responses
Status | Description |
|---|---|
| Refund processed successfully |
| Bad request |
| Too many requests |
Response schema (2xx)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Whether the operation was successful |
|
| Yes | |
|
| Yes | Success message |
POST /v1/payments/void
Void a payment
Process a void for a payment transaction. Note: The merchantAccount will be automatically added by middleware and should not be included in the request.
Request body (required)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Transaction ID of the payment to void |
|
| No | An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms |
|
| Yes |
Responses
Status | Description |
|---|---|
| Void processed successfully |
| Bad request |
| Too many requests |
Response schema (2xx)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Whether the operation was successful |
|
| Yes | |
|
| Yes | Success message |
GET /v1/payments/refundable-amount/{id}
Get refundable amount for a payment
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path |
| Yes | Transaction ID to retrieve refundable amount for |
Responses
Status | Description |
|---|---|
| Refundable amount retrieved successfully |
| Transaction not found |
Response schema (2xx)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Whether the operation was successful |
|
| Yes | |
|
| Yes | Success message |
GET /v1/payments/void-status/{id}
Get void status for a payment
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path |
| Yes | Transaction ID to retrieve void status for |
Responses
Status | Description |
|---|---|
| Void status retrieved successfully |
| Transaction not found |
Response schema (2xx)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Whether the operation was successful |
|
| Yes | |
|
| Yes | Success message |
POST /v1/payments/get-payment-methods
Get available payment methods for a merchant account
Request body (required)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Action to perform One of: |
|
| Yes |
Responses
Status | Description |
|---|---|
| Payment methods retrieved successfully |
| Bad request - validation failed |
| Unauthorized - invalid or missing authentication |
| Internal server error |
Response schema (2xx)
Field | Type | Required | Description |
|---|---|---|---|
|
| Yes | Whether the operation was successful |
|
| Yes | |
|
| Yes | Success message |
Examples
POST /v1/payments/refund
Response 200:
GET /v1/payments/refundable-amount/{id}
Response 200 (illustrative):
POST /v1/payments/void
Response 200: the void confirmation object.