payment_method_sets

Resource: payment_method_set

This link relationship returns a collection of payment method sets. You can paginate through this collection using the hypermedia links provided and the link relationships of first, prev, next, and last.

Required Scopes

Full store_full_access
Read payment_settings_read
Write payment_settings_write

Collection Resource

payment_method_set

Actions

GET View a list of payment_method_sets
POST Create a new payment method set
HEAD Get just the header response
OPTIONS Get a response explaining which HTTP methods are supported

Properties (5)

_embedded Object · Read-only

Contains fx:payment_method_sets[] — array of payment_method_set resources

total_items String · Read-only

Total number of resources in this collection.

returned_items Number · Read-only

Number of resources returned in this page.

limit Number · Read-only

Maximum number of resources per page.

offset Number · Read-only

Number of resources skipped.

Link Relations (5)

self This Collection
first First Page of this Collection
prev Previous Page of this Collection
next Next Page of this Collection
last Last Page of this Collection
https://api.foxycart.com/stores/{store_id}/payment_method_sets
Available via fx:payment_method_sets on fraud_protection·fx:payment_method_sets on hosted_payment_gateway·fx:payment_method_sets on payment_gateway·fx:payment_method_sets on payment_method_set·fx:payment_method_sets on store

Example Representation

{
  "_links": {
    "curies": [
      {
        "name": "fx",
        "href": "https://api.foxycart.com/rels/{rel}",
        "templated": true
      }
    ],
    "self": {
      "href": "https://api.foxycart.com/stores/123/payment_method_sets",
      "title": "This Collection"
    },
    "first": {
      "href": "https://api.foxycart.com/stores/123/payment_method_sets?offset=0",
      "title": "First Page of this Collection"
    },
    "prev": {
      "href": "https://api.foxycart.com/stores/123/payment_method_sets?offset=0",
      "title": "Previous Page of this Collection"
    },
    "next": {
      "href": "https://api.foxycart.com/stores/123/payment_method_sets?offset=20",
      "title": "Next Page of this Collection"
    },
    "last": {
      "href": "https://api.foxycart.com/stores/123/payment_method_sets?offset=20",
      "title": "Last Page of this Collection"
    }
  },
  "_embedded": {
    "fx:payment_method_sets": [
      {
        "_links": {
          "curies": [
            {
              "name": "fx",
              "href": "https://api.foxycart.com/rels/{rel}",
              "templated": true
            }
          ],
          "self": {
            "href": "https://api.foxycart.com/payment_method_sets/456",
            "title": "This Payment Method Set"
          },
          "fx:store": {
            "href": "https://api.foxycart.com/stores/456",
            "title": "This Store"
          },
          "fx:payment_method_sets": {
            "href": "https://api.foxycart.com/stores/456/payment_method_sets",
            "title": "Payment method sets for this store."
          },
          "fx:payment_gateway": {
            "href": "https://api.foxycart.com/payment_gateways/456",
            "title": "Payment gateway for this payment method set."
          },
          "fx:payment_method_set_hosted_payment_gateways": {
            "href": "https://api.foxycart.com/payment_method_sets/123/hosted_payment_gateways",
            "title": "Payment Method Set Hosted Payment Gateways relationships."
          },
          "fx:payment_method_set_fraud_protections": {
            "href": "https://api.foxycart.com/payment_method_sets/123/fraud_protections",
            "title": "Payment Method Set Fraud Protection relationships."
          },
          "fx:connect_gateway": {
            "href": "https://api.foxycart.com/payment_method_sets/123/connect_gateway",
            "title": "Use POST request to connect GW"
          }
        },
        "gateway_uri": "https://api-sandbox.foxycart.com/payment_gateways/6",
        "description": "Default Payment Method Set",
        "is_live": false,
        "is_purchase_order_enabled": false,
        "date_created": "2012-08-10T11:58:54-0700",
        "date_modified": "2012-08-10T11:58:54-0700"
      }
    ]
  },
  "total_items": 1,
  "returned_items": 1,
  "limit": 20,
  "offset": 0
}