List all payment options

How to fetch a collection of payment options via API

To fetch a collection of payment options, send a GET request to the /api/payment_options endpoint.

Request

GET https://yourdomain.commercelayer.io/api/payment_options

Example

The following request fetches a collection of payment options:

curl -g -X GET \
  'https://yourdomain.commercelayer.io/api/payment_options/' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer your-access-token'

Remember that when you fetch a list of resources you get paginated result.

Sortable fields

The list of payment options can be sorted by the following fields:

Attributes

  • name

  • payment_source_type

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

Relationships

  • order

Filterable fields

The list of payment options can be filtered by the following fields:

Attributes

  • name

  • payment_source_type

  • data

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

Relationships

  • order

  • attachments

Last updated