Skip to main content
Version: 2019-05-29 (Current)

List All Links

Returns a paginated collection of all payment links in your account. Filter by date range and control sort order.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Additional - 5 fieldsAdditional Parameters

Responsesโ€‹

200

Successful retrieval

Links list retrieved successfully. Returns a paginated list with metadata.

Response structure:
  • object - Always returns "list"
  • data - Array of link objects
  • limit - Records per page
  • offset - Number of records skipped
  • total - Total number of links matching filters
  • order - Sort order applied
  • from - Start date filter applied
  • to - End date filter applied

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid date format (must be ISO 8601)
  • Invalid limit value (exceeds maximum)
  • Invalid order value
  • Malformed parameters

401

Unauthorized

Authentication failed. Invalid or missing API key.

Common causes:
  • Missing Authorization header
  • Invalid secret key
  • Using public key instead of secret key
  • Incorrect HTTP Basic Auth format

Code samplesโ€‹

curl https://api.omise.co/links \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-G \
-d "limit=20" \
-d "offset=0" \
-d "order=reverse_chronological"

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
bad_requestMissing or invalid parametersCheck parameter values and formats
authentication_failureInvalid API keyVerify your secret key is correct
invalid_date_formatDate format validation failedUse ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)

Paginationโ€‹

To paginate through results:

  • Use limit to control page size (max 100)
  • Use offset to skip records
  • Check total in response to know total available records
  • Example: Page 2 with 20 per page = offset=20&limit=20

Try it outโ€‹

Additional - 5 fields