batchList

GEThttps://api.twisto.pl/psp/v2/batch/

Get a list of batches.

Security: Token Auth

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

Query Parameters

Param nameTypeDescriptionRequiredDefault valuesMin/Max values
cursorstringThe pagination cursor value.false
page_sizeintegerNumber of results to return per page.false
payment_identifierstringPayment identifier used in relevant batchesfalse
settlement_datestringDate when batch was processedfalse

Responses

Body

  • next: string or null

    Full URL to the next page

  • previous: string or null

    Full URL to the previous page

  • results: array[object]
    • id: string<uuid>
      required
    • settlement_date: string<date>
      required

      Date when batch was processed

    • amount: string<decimal>
      required

      The current value of order minus refunds

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

      The value of the whole order

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

      How much was refunded back

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

      The status of the Batch.

      Allowed values: processing ready_for_payment paid exported error 
  • next_cursor: string or null

    GET parameter to pass to the API endpoint to get the next page - e.g. 'cursor=cD0yMDIzLTA2LTA3KzA2JTNBNTMlM0E1OC4zMjIzNjUlMkIwMCUzQTAw'

  • previous_cursor: string or null

    GET parameter to pass to the API endpoint to get the previous page - e.g. 'cursor=cD0yMDIzLTA2LTA3KzA2JTNBNTMlM0E1OC4zMjIzNjUlMkIwMCUzQTAw'

Response example

{ "next": "string", "previous": "string", "results": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "settlement_date": "2022-12-31", "amount": "729.00", "order_amount": "729.00", "refund_amount": "496.00", "status": "ready_for_payment" } ], "next_cursor": "string", "previous_cursor": "string" }