API
HomeEasytransac
HomeEasytransac
  1. SDD
  • Start
    • API Domain Usage
    • Get an API key
    • Communication
  • Documentation
    • Errors
      • ApiError codes
    • Webhooks
      • PUSH Method
      • PULL Method
  • V2
    • Overview
    • Authentication
      • JWT access token - Generate
        POST
    • Endpoints
      • Open Banking
        • Open Banking - Initialize
      • SDD
        • SDD - Mandate - Create
          POST
        • SDD - Mandate - Debit
          POST
        • SDD - Mandate - Get status
          GET
      • Transaction
        • Transaction - Get status
  • V1
    • Documentation
      • Signature
    • Authentication
      • Overview
      • Security
      • PSD2 and 3DSecure
    • API - Payment
      • Recurring payments
      • Card payment
      • 1-click payment
      • SEPA Direct Debit
      • Transfer (Open Banking)
      • Payment page
      • Cancel a payment page
      • Resend the payment page
      • P2P Transfert
      • Update a subscription
      • Status
      • Refund
      • Capture
      • Cancellation
      • List of cards
      • List of IBANs
      • History
      • Payment requests
      • Card information
    • API - User
      • Add a merchant
      • Update a merchant
      • Search for a merchant
      • List of movements
      • Make a payout
      • List all payouts
      • Add a logo
      • Get the activity
      • Update activity
    • API - Document
      • Add a document
      • Get a document
      • List documents
  1. SDD

SDD - Mandate - Create

Sandbox
https://api.sandbox.easytransac.com/v2
Sandbox
https://api.sandbox.easytransac.com/v2
POST
/sdd/mandate/create
sdd
Creates a mandate for SDD (SEPA Direct Debit).

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
email
string <email>
required
Customer's email address associated with the payment
>= 6 characters<= 128 characters
lastname
string 
required
Customer's last name
>= 1 characters<= 128 characters
Match pattern:
^[A-Za-z0-9]+$
iban
string 
required
Account's IBAN (ISO 13616)
>= 14 characters<= 34 characters
Match pattern:
^[A-Z]{2}[0-9]{2}[A-Z0-9]{10,30}$
address
string 
required
Customer's address
>= 1 characters<= 128 characters
Match pattern:
^[A-Za-z0-9]+$
zipCode
string 
required
Customer's postal code
>= 1 characters<= 16 characters
Match pattern:
^[A-Za-z0-9]+$
city
string 
required
Customer's city
>= 1 characters<= 64 characters
Match pattern:
^[A-Za-z0-9]+$
country
string 
required
Customer's country of residence (ISO 3166-1 Alpha 3)
>= 3 characters<= 3 characters
uid
string  | null 
optional
Your own customer ID
>= 1 characters<= 64 characters
Match pattern:
^[A-Za-z0-9]+$
bic
string  | null 
optional
Account's BIC (ISO 9362)
>= 8 characters<= 11 characters
Match pattern:
^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$
accountOwner
string  | null 
optional
Account's owner (person or company)
>= 1 characters<= 64 characters
clientId
string  | null 
optional
Customer's Easytransac ID (only available if you have already made a payment for this customer)
>= 7 characters<= 7 characters
Match pattern:
^[A-Za-z0-9]{7}$
firstname
string  | null 
optional
Customer's first name
>= 1 characters<= 128 characters
Match pattern:
^[A-Za-z0-9]+$
callingCode
integer  | null 
optional
Customer's calling code
>= 1<= 999
phone
string  | null 
optional
Customer's phone number
>= 5 characters<= 18 characters
Match pattern:
^[0-9]{5,18}$
birthDate
string <date> | null 
optional
Customer's birth date (ATOM)
>= 10 characters<= 10 characters
nationality
string  | null 
optional
Customer's nationality (ISO 3166-1 Alpha 3)
>= 3 characters<= 3 characters
Example
{
    "email": "abc@abc.com",
    "lastname": "ABCabc123",
    "iban": "FR7630001007941234567890185",
    "address": "ABCabc123",
    "zipCode": "ABCabc123",
    "city": "ABCabc123",
    "country": "FRA"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sandbox.easytransac.com/v2/sdd/mandate/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "abc@abc.com",
    "lastname": "ABCabc123",
    "iban": "FR7630001007941234567890185",
    "address": "ABCabc123",
    "zipCode": "ABCabc123",
    "city": "ABCabc123",
    "country": "FRA"
}'

Responses

🟢200OK
application/json
OK
Body
success
boolean 
required
Whether the action was successful
date
string <date-time>
required
Date of response (ATOM)
>= 25 characters<= 25 characters
data
object 
required
Additional data
mandateId
string 
required
Easytransac mandate ID
>= 20 characters<= 20 characters
Match pattern:
^[a-z0-9]{20}$
status
enum<string> 
required
Mandate status
>= 6 characters<= 7 characters
Allowed values:
activeinvalidpending
dateCreated
string <date-time>
required
Date of creation of the resource (ATOM)
Example
{
    "success": true,
    "date": "2024-12-31T23:59:59+02:00",
    "data": {
        "mandateId": "abcabcabcabcabcabc12",
        "status": "active",
        "dateCreated": "2024-12-31T23:59:59+02:00"
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠405405
🔴500Server Error
🔴502Bad Gateway
🔴504Gateway Timeout
Previous
Open Banking - Initialize
Next
SDD - Mandate - Debit
Built with