Skip to content
Last updated

Request and response structure

Request headers

Include the following headers on every request.

HeaderValueRequiredNotes
Content-Typeapplication/jsonYes (when sending a body)All request bodies must be JSON
APIKEYYour API keyYesRetrieved via email

Request body conventions

  • Field names use snake_case (for example, expiry_month, cardholder_name).
  • Monetary amounts are integers in the smallest currency unit. For US dollars (USD), 1999 equals 19.99 US dollars.
  • Dates use ISO 8601 UTC format: 2026-01-15T14:30:00Z.
  • Placeholders in examples use ALL-CAPS with hyphens: YOUR-API-KEY, YOUR-EMAIL.

Response envelope

Every successful response includes the resource data plus a correlation_id for tracing.

{
  "id": "TRANSACTION-01JMRSPCK7XVNP3KS8F2W4T6Y",
  "object": "transaction",
  "type": "card_sale",
  "transaction_state": "authorized",
  "response_status": "Approved",
  "response_code": "00",
  "response_message": "The API request is approved.",
  "amount": 1999,
  "correlation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
FieldDescription
idUnique resource identifier, prefixed by type (for example, TRANSACTION-, BATCH-)
objectResource type string
correlation_idUUID for request tracing; include this when contacting support

List endpoints support offset-based pagination using skip and take query parameters.

ParameterTypeDefaultDescription
skipstring0Number of records to skip
takestring20Number of records to return

Example

curl -X GET \
  "https://api.dev.paradisegateway.net/v1/transactions?skip=0&take=25" \
  -H "APIKEY: YOUR-API-KEY"

To retrieve the next page, increment skip by the take value.

RequestskiptakeRecords returned
Page 10251–25
Page 2252526–50
Page 3502551–75

Sorting

List endpoints support sorting with sort_column and sort_order parameters.

ParameterTypeDefaultDescription
sort_columnstringVaries by endpointField name to sort by
sort_orderstringdescSort direction: asc or desc

Example in sorting

curl -X GET \
  "https://api.dev.paradisegateway.net/v1/transactions?sort_column=transaction_date&sort_order=asc" \
  -H "APIKEY: YOUR-API-KEY"

List endpoints support text-based filtering with search_text and term parameters.

ParameterTypeDescription
search_textstringFree-text search across relevant fields
termstringTerm-based filter

Example in filtering

curl -X GET \
  "https://api.dev.paradisegateway.net/v1/transactions?search_text=Doe&take=10" \
  -H "APIKEY: YOUR-API-KEY"

Combining parameters

You can combine pagination, sorting, and filtering in a single request.

curl -X GET \
  "https://api.dev.paradisegateway.net/v1/transactions?skip=0&take=10&sort_column=transaction_date&sort_order=desc&search_text=Doe" \
  -H "APIKEY: YOUR-API-KEY"

List response structure in pagination

List endpoints return an array of resources. The response structure follows this pattern.

{
  "data": [
    {
      "id": "TRANSACTION-01JMRSPCK7XVNP3KS8F2W4T6Y",
      "object": "transaction",
      "type": "card_sale",
      "amount": 1999
    },
    {
      "id": "TRANSACTION-02KNSTQDL8YWOP4LT9G3X5U7Z",
      "object": "transaction",
      "type": "card_sale",
      "amount": 4500
    }
  ],
  "correlation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}

Further reading