Send bulk payment request
To create a bulk payment request, a POST request must be made to the batch payment endpoint, with the structure of the JSON shown below:
1.{
"merchantId": "your_merchant_id",
"secret": "your_secret",
"terminal": "your_terminal",
"currency": "USD || CRC || GTQ",
"payments": [
{
"orderReference": "xwr-100",
"amount": 0.00,
"token": [
"the_card_token_to_use_in_your_payment"
]
},
{
"orderReference": "xwr-200",
"amount": 0.00,
"token": [
"the_card_token_to_use_in_your_payment"
]
}
]
}
The endpoint will respond to a JSON object with a “status: 200” and a self-generated “bulkId” that should be used when our system invokes your webhook.
The service response has the following structure:
1.{
"status": 200
"bulkId": "83be3d9d-8ebb-4cdf-a96a-c364da15bd80"
}
Related Articles
Webhook payment response
1. Description If the merchant requires receiving the payments responses or card tokenization response in a backend, either to update orders, information or only store the response in the database as a backup, then they have to enable a webhook. A ...
Manual payment
For this service, the following endpoint must be consumed: https://sandbox-merchant.greenpay.me/subscriptions/pay Step by step to process a successful manual payment in our API: 1.Create the JSON object to be sent. JSON structure example { ...
List payment subscriptions
For this service the following endpoint must be consumed: https://sandbox-merchant.greenpay.me/subscriptions/list/payments Below is the step by step to list payment subscriptions in our API: 1. Create the JSON object to be sent JSON structure ...
Update payment method
For this service, the following endpoint must be consumed: https://sandbox-merchant.greenpay.me/subscriptions/update/card_token Step by step to update a payment method in our API: 1. Create the JSON object to be sent JSON structure example { ...
Create payment order
To consider A payment order is created to prepare the Greenpay API for a make a payment process. The following aspects have to be consider: Use these endpoints: Sandbox: https://sandbox-merchant.greenpay.me/ Production: https://merchant.greenpay.me/ ...