- Start
- Documentation
- V2
- Overview
- Authentication
- Endpoints
- V1
SDD - Mandate - Debit
Sandbox
Sandbox
POST
/sdd/mandate/{mandateId}/debit
sdd
mandateId
.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
mandateId
string
required
>= 20 characters<= 20 characters
Example:
{{mandateId}}
Match pattern:
^[a-z0-9]{20}$
Body Params application/json
amount
integer
required
>= 1
b2b
boolean | null
optional
Default:
false
clientIp
string <ipv4> | null
optional
>= 7 characters<= 45 characters
orderId
string | null
optional
>= 1 characters<= 64 characters
description
string | null
optional
>= 1 characters<= 2048 characters
multiplePayments
boolean | null
optional
Default:
false
multiplePaymentsRepeat
integer | null
optional
multiplePayments
is enabled>= 2<= 10
Default:
3
downPayment
integer | null
optional
rebill
or multiplePayments
is enabled (cents)>= 1
rebill
boolean | null
optional
Default:
false
recurrence
enum<string> | enum<null>
optional
rebill
is enabled>= 5 characters<= 10 characters
Allowed values:
dailyweeklymonthlybimonthlyquarterlybiannualyearly
Default:
monthly
payToEmail
string <email> | null
optional
>= 6 characters<= 128 characters
payToId
integer | null
optional
>= 1<= 99999999999
userAgent
string | null
optional
>= 1 characters<= 2048 characters
language
enum<string> | enum<null>
optional
>= 3 characters<= 3 characters
Allowed values:
DEUENGFREITASPA
Default:
FRE
Example
{
"amount": 1000
}
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 -g --request POST 'https://api.sandbox.easytransac.com/v2/sdd/mandate//debit' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 1000
}'
Responses
🟢200OK
application/json
Body
success
boolean
required
date
string <date-time>
required
>= 25 characters<= 25 characters
data
object
required
tid
string
required
>= 8 characters<= 14 characters
Match pattern:
^[A-Za-z0-9-]{8,14}$
status
enum<string>
required
>= 6 characters<= 10 characters
Allowed values:
authorizedcapturedfailedpendingrefunded
amount
integer
required
>= 1
dateCreated
string <date-time>
required
orderId
string | null
optional
>= 1 characters<= 64 characters
Example
{
"success": true,
"date": "2024-12-31T23:59:59+02:00",
"data": {
"tid": "ABC1-ABC1-ABC1",
"status": "captured",
"amount": 1000,
"dateCreated": "2024-12-31T23:59:59+02:00",
"orderId": "ABCabc123"
}
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠405405
🔴500Server Error
🔴502Bad Gateway
🔴504Gateway Timeout