ChargeRetrieve

GEThttps://api.twisto.cz/psp/smi/charges/{chargeId}
GEThttps://api.twisto.pl/psp/smi/charges/{chargeId}

Get a charge by its identifier.

Security: Bearer Auth

Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123

Path Parameters

Param nameTypeDescriptionRequiredDefault valuesMin/Max values
chargeIdstringtrue

Responses

Body

  • id: string
    required

    External ID of the charge

  • reference: string

    Order payment reference

  • amount: string<decimal>
    required

    Total amount

    Match pattern: ^-?\d{0,8}(?:\.\d{0,2})?$
  • currency: string
    required

    ISO-4217 currency code

    >= 3 characters <= 3 characters
  • captured_amount: string<decimal>
    required

    Captured amount

    Match pattern: ^-?\d{0,8}(?:\.\d{0,2})?$
  • refunded_amount: string<decimal>
    required

    Refunded amount

    Match pattern: ^-?\d{0,8}(?:\.\d{0,2})?$
  • created_date: string<date-time>
    required

    Date when the order was created

  • receipt_number: string
    required

    Invoice external ID

  • product: string
    required

    Type of service

    Allowed values: Twisto Pay in three 
  • state: string
    required
    Allowed values: rejected authorised captured cancelled refunded error 

Response example

{ "id": "string", "reference": "string", "amount": "303.00", "currency": "str", "captured_amount": "644.00", "refunded_amount": "505.00", "created_date": "string", "receipt_number": "string", "product": "Pay in three", "state": "captured" }