Mandates

Get Mandate

Retrieve the current state of a mandate from the payment provider

Retrieve the live state of a mandate, fetched directly from the payment provider.

Endpoint

GET /api/mandates/{mandate_id}

Authentication: Required (API Key)

Description

Returns the current details of a mandate, including its status, collection amounts, and schedule. The data is proxied directly from the DebiCheck provider, so it always reflects the latest state.

Mandates are created as part of a payment intent flow. See Create Payment Intent for how to set up the future_payments object that triggers mandate signing.

Parameters

Path Parameters

ParameterTypeRequiredDescription
mandate_idintegerYesThe NjiaPay internal mandate ID

The mandate_id will be provided to you via webhook.

Example Request

curl -X GET "https://api.njiapay.com/api/mandates/42" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Success (200 OK)

{
  "contract_number": "MANDATE-12345",
  "instalment_amount": 1000,
  "maximum_amount": 1500,
  "collection_day": 1,
  "first_initiation_date": "2025-06-01T00:00:00Z",
  "instalment_start_date": "2025-06-01T00:00:00Z",
  "number_of_instalments": 11,
  "registered_mandate": true,
  "frozen": false,
  "status": "active"
}
FieldTypeDescription
contract_numberstringUnique contract identifier at the provider
instalment_amountintegerScheduled collection amount per instalment in minor units
maximum_amountintegerMaximum amount that can be collected per instalment in minor units
collection_dayintegerDay of the configured frequency on which collections occur
first_initiation_datestring | nullDatetime of the first instalment initiation, if available
instalment_start_datestringDatetime from which instalments begin
number_of_instalmentsinteger | nullTotal number of instalments to collect. null for indefinite (subscription-based)
registered_mandateboolean | nullWhether the mandate is registered at the bank register
frozenbooleanIf true, no collections are made against this mandate
statusstringCurrent mandate status — see Mandate statuses

Mandate statuses

StatusDescription
initiatedMandate created; customer not yet redirected to sign
pendingSigning in progress at the provider
authorizedSuccessfully signed by the customer
activeApproved by the bank and ready for collections
canceledCancelled by the customer or the merchant
failedSigning or authorisation failed
suspendedSuspended at the bank register; can be reactivated by the bank

Error Responses

403 Forbidden

{
  "detail": "Mandate does not belong to this merchant"
}

404 Not Found

{
  "detail": "No mandate found for this ID"
}

502 Bad Gateway

{
  "detail": "Mandate retrieval failed at payment provider"
}

Causes:

  • The payment provider returned an error or is unreachable