1. Direct debit
API
English
  • Español
  • English
  • Introduction
    • Kambia API
    • Credentials
    • Authentication
    • Verification
      POST
  • Services
    • Code catalog
    • Payout
      • Notifications
      • Create payout
      • Get payout
    • Direct debit
      • Affiliation
        POST
      • Charge
        POST
  1. Direct debit

Affiliation

Developing
POST
/{{api_version}}/autodebit/{{merchant_id}}/affiliation
Description
Enrolls customers in direct debit so they can be charged later.
Authentication
See the section here
Result per record
Each record comes back in details with its result: nueva (new), actualizada (updated), rechazada (rejected, with the reason) or error (it couldn't be saved; send it again). If any record ended in error, the response is 207.

Request

Body Params application/jsonRequired

Examples

Responses

🟢202Accepted
application/json
Bodyapplication/json

Response Response Example
{
    "status_code": 202,
    "message": "Affiliate record(s) processed successfully",
    "data": {
        "processed": 2,
        "rejected": 0,
        "total": 2,
        "details": [
            {
                "document_number": "12345678",
                "full_name": "Juan Perez",
                "outcome": "nueva"
            },
            {
                "document_number": "20123456789",
                "full_name": "Empresa SAC",
                "outcome": "nueva"
            }
        ]
    }
}
Modified at 2026-10-02 17:56:41
Previous
Get payout
Next
Charge
Built with