Payments

Retrieve a Payments collection

Changed on

Return a list of Payments, eventually filtered by criteria.

get/payments

Request

  • The document declares no server URL.
  • Auth
    none declared. Required headers: ApiKey, MerchantId, Environment

Query parameters

isDelegatedboolean
Example:true

Only transactions matching the given delegated status

tostring
Example:2020-10-15T12:09:49.355Z

A date in UTC timezone to filters data to, inclusively. Follows the Datetime ISO. The default value is now().

fromstring
Example:2020-10-15T12:09:49.355Z

A date in UTC timezone to filters data from, inclusively. Follows the Datetime ISO. The default value is the first day of this month.

pagenumber
Example:2

The page number in the returned data. The default value is 1. Do use with 'perPage' query parameter to paginate properly.

perPagenumber
Example:5

The maximum number of results that will be return. The default value is 10. Do use with 'page' query parameter to paginate properly.

Headers

ApiKeystring required

Your api key. To create a key, please get into our dashboard. If you don't have access to it, please reach the Support team.

MerchantIdstring required

Your merchant ID. This information is available in our dashboard. If you don't have access to it, please reach the Support team.

Environment'live' | 'sandbox' required

Allow you to choose between the sandbox mode to perform some tests or the live mode for real world transactions.

Response

idstring required

Unique identifier for the Payment

intentIdstring required

Unique identifier for the PaymentIntent owning this Payment

createdAtstring required

Datetime in UTC timezone at which this object was created. Follows the Datetime ISO.

updatedAtstring required

Datetime in UTC timezone at which this object was updated for the last time . Follows the Datetime ISO.

status'created' | 'failed' | 'pending' | 'successful' required

Current status of this Payment

amountnumber required

Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge €1.00 or 100 to charge FCFA100, a zero-decimal currency).

currencystring required

Three-letter ISO currency code.

method'mobile_money' | 'credit_card' | 'bank_transfer' | 'instant_payment' required

The method selected by the customer to make this Payment

countrystring required

Two-letter ISO country code. Represents the country where the provider selected by the customer is localized.

providerReferencestring required

provider reference that identify this payment

numberstring required

The identifier referencing the payment method of the customer. - In case of a payment by Mobile Money, it corresponds to the customer phone number corresponding to his Mobile Money account, - In case of a payment by Credit Card, it corresponds to the four last digits of the customer's credit card number.

isDelegatedboolean

Indicates whether this payment is a delegated payment.

Example response

[
  {
    "id": "pay_QW2d6JnqiatcH8KhK0mD1",
    "intentId": "pi_z1urYtVFgEebtcj8fxp4v",
    "createdAt": "2020-10-15T12:09:49.355Z",
    "updatedAt": "2020-10-15T12:16:26.128Z",
    "status": "successful",
    "amount": 100,
    "currency": "XOF",
    "method": "mobile_money",
    "country": "CI",
    "fees": [
      {
        "id": "fee_lAe5HnFpvOjwdT9vSIgPA",
        "amount": 5,
        "currency": "XOF",
        "taxes": [
          {
            "id": "tax_lAe5HnFpvOjwdT9vSIgPA",
            "feeId": "fee_lAe5HnFpvOjwdT9vSIgPA",
            "taxType": "tva",
            "type": "percent",
            "value": 3.813559322033896
          }
        ]
      }
    ],
    "nextAction": {
      "data": {
        "method": "post"
      }
    },
    "paymentInformation": {
      "customer_id_hashmac": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
    }
  }
]

Changes

    • breaking

      the ////// response property's maxLength was increased from 50 to 64 for the response status

    • breaking

      the //// response's property type changed from string to object for status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      added the new consent_reference_in_use enum value to the ////// response property for the response status

    • warning

      added the new instant_payment enum value to the / response property for the response status

    • warning

      added the new issuer_authentication_unavailable enum value to the ////// response property for the response status

    • warning

      added the new recipient_unavailable enum value to the ////// response property for the response status

    • warning

      added the new reconciliation_failure enum value to the ////// response property for the response status

    • info

      removed the blacklisted_msisdn enum value from the ////// response property for the response status

    • info

      the ////// response's property pattern ^[0-9a-fA-F]{64}$ was added for the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status