Get Debit Agreement

for Australia and Canada

πŸ“˜

This API can be used with BECS Direct Debit and Pre-Authorized Debit. Both are currently in Beta. Please reach out to BlueSnap Merchant Support to enable those payment methods.

Definition

https:://sandbox.bluesnap.com/services/2/agreements/{agreementId}

The Get Debit Agreement request retrieves the mandate generated by the merchant using the Create Debit Agreement API request. The mandate is retrieved using the given agreement ID.


πŸ“˜

Tip

You can test out a request that hits our sandbox in real-time. Follow the instructions here to use the "Try It!" feature on the right side.

Request Content

Enter the agreementId query parameter into the web service URL, in the format: services/2/agreements/:agreementId

Response Details

If successful, the response HTTP status code is 200 OK. The response contains the mandate text.


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/agreements/1065 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='

Response Examples

{
    "region": "Canada",
    "debitType": "ONETIME",
    "agreementName": "Pre-Authorized Debit Agreement",
    "agreementId": 1065,
    "agreementText": "I / we authorize Best Shop Ever to debit the bank account I / we have identified on any future purchase that I / we make. 

The amount debited should equal the checkout amount. \nBest Shop Ever is not required to get my / our authorization for any future sporadic debit.

I / we may revoke this authority at any time, subject to providing notice of (30 days).

To obtain a sample cancellation form, or for more information on my right to cancel a PAD Agreement, I may contact my financial institution or visit www.payments.ca

Best Shop Ever

Apartment 10F 300 East 56 St 

New York, United States 10022

Tel: +1-212-552-0482

Email: [email protected]

I have certain recourse rights if any debit does not comply with this agreement for example, I have the right to receive reimbursement for any debit that is not consistent with this PAD Agreement.  

To obtain more information on my recourse rights, I may contact my financial institution or visit www.payments.ca.  

authorize BlueSnap, Inc to process payments on behalf of Best Shop Ever.",
    "status": "UNUSED"
}

Back to Top

API Explorer

To test a call, enter the agreementId query parameter into the available fields. This automatically inserts the ID into the request URL. You can also use the default values and click Try It when you're ready to run the request.

Language
Authentication
Header
Click Try It! to start a request and see the response here!