CartirraAPI
Get API keys

Retrieve a payment

gethttps://api.cartirra.com/v1/payments/{id}
Authentication
Secret key (Authorization: Bearer sk_…). How keys work
Permission
orders:read

Path parameters

  • idstringrequired

Responses

200OKPaymentResponse
  • idstringrequired

    Example pay_0193…

  • order_idstringrequired

    Example ord_0193…

  • methodstringrequired

    One of bank_transfer, card, wallet, pay_on_delivery, pay_for_me, cartirra_app

  • statusstringrequired

    One of requires_action, processing, succeeded, failed, expired, unknown, cancelled

  • amountMoneyResponserequired
  • amount_receivedMoneyResponserequired
  • succeeded_atstring (date-time)nullable
  • providerstringnullable

    Who took the money: the card provider, pletopay for bank transfers, wallet for the Cartirra wallet

    Example paystack

  • referencestringnullable

    The payment's reference at the provider: the card transaction's reference (as the provider's dashboard shows it), or the transfer's at Pletopay

    Example cpa-0193…

  • bank_transferTransferDetailsResponsenullable
  • cardCardActionResponsenullable

Errors

Every error has the same body: { "error": { "code", "message", "details"?, "request_id" } }. See Errors for every code.

  • 400The request is malformed or a field is invalid (`VALIDATION_FAILED`).
  • 401Missing, malformed, revoked or expired API key (`UNAUTHENTICATED`), or a key this route does not accept, such as a public key (`CREDENTIAL_NOT_ACCEPTED`).
  • 403The key may not do this (`PERMISSION_DENIED`, `LIVE_MODE_NOT_ENABLED`, `PLAN_LIMIT_REACHED`, …).
  • 404No such resource in this business and mode (`NOT_FOUND`).
  • 429Too many requests for this key (`RATE_LIMITED`); wait for `Retry-After` seconds.
  • 500Something went wrong on our side (`INTERNAL`). Safe to retry with the same `Idempotency-Key`.