3.20. /api/v4/process-recurring-payments

Introduction

If request is accepted with no errors, the Payment Gateway finds the recurring payment profiles for each provided recurring-payment-id and initiates new recurring transactions using the payment data saved in each profile.

Process recurring payment Multiple is initiated through HTTPS POST request by using URLs and the parameters specified below. Use OAuth RSA-SHA256 for authentication.

API URLs

IntegrationProduction
https://sandbox.billblend.com/checkout/api/v4/process-recurring-payments/ENDPOINTIDhttps://pay.billblend.com/checkout/api/v4/process-recurring-payments/ENDPOINTID

Request Parameters

Note

Request must have content-type=application/x-www-form-urlencoded and Authorization headers.

Below is a description of each parameter that can be included in the CSV and added to payload parameter which will be used in the request.

CSV Parameter NameDescriptionValue
client-orderidConnecting Party order ID.Necessity: RequiredType: StringLength: 128
recurring-payment-idRecurring ID assigned to the order by QA.Necessity: RequiredType: StringLength: 10
amountAmount of currency must be the same as currency on the project assigned. Upon reaching finish date, Recurring payment will go into stop status. Supported for SRC and DST type. Required if amount-from and amount-to or amount-sequence are not used.Necessity: ConditionalType: NumericLength: 10

Response Parameters

Note

Response has Content-Type: text/html;charset=utf-8 header. All fields are x-www-form-urlencoded, with (0xA) character at the end of each parameter’s value.

Response ParametersDescription
typeThe type of response. Example: process-recurring-payment-responsevalidation-errorerror. If type equals validation-error or errorerror-message and error-code parameters contain error details. Multiple error codes may be received: 200403, and 500. For the 500 error code, an additional error ID will be returned.
statusSee Status List for details
serial-numberUnique number assigned by Billblend server to particular request from the Merchant

Request Example

Step 1. Create a CSV with the provided structure:

"client-orderid";"recurring-payment-id";"amount"

Step 2. Encode CSV to base64 with the following command:

base64 process-recurring-payments-example.csv

Step 3. Assign the base64 encoded value to payload parameter and send the request:

POST /checkout/api/v4/process-recurring-payments/ HTTP/1.1
Host: sandbox.billblend.com
User-Agent: curl/8.4.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
Authorization: OAuth oauth_consumer_key="ErwinTestMerchant",oauth_signature_method="RSA-SHA256",oauth_timestamp="1727177782",oauth_nonce="Js4dwXkF8eI",oauth_version="1.0",oauth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Wl0aDsxMjM0IFBlYWNlIHN0cmVldDtDaGljYWdvOzEyMzQ1NjtVUztJTDsxMjM0NTY3ODtqb2huLnNtaXRoQGV4YW1wbGUuY29tOzEuMi4zLjc7MTA7VVNEO05vIHB1cnBvc2UgYXQgYWxsO2h0dHA6Ly9leGFtcGxlLmNvbS9wcm9jZXNzLW1lOzEyMzQ7MDIuMDEuMTk4MA0K

Success Response Example

Note

The successful response has empty body and HTTP code 200.

HTTP/1.1 200
Server: server
Date: Tue, 24 Sep 2024 09:47:01 GMT
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=60
X-XSS-Protection: 1
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
Strict-Transport-Security: max-age=31536000

Fail Response Example

Note

The unsuccessful response has empty body and HTTP code 403.

HTTP/1.1 403
Server: server
Date: Wed, 25 Sep 2024 08:46:12 GMT
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=60
X-XSS-Protection: 1
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000

Contact us

By clicking on the button, you agree to the data protection policy

Complete the quiz

By clicking on the button, you agree to the data protection policy