subscription

POST /v1/subscription/{handle}/payment-method

Request

  • Base URL
    https://customer-portal-api.frisbii.com
  • URL
    https://customer-portal-api.frisbii.com/v1/subscription/{handle}/payment-method
  • Auth
    none declared

Path parameters

handlestring required

Subscription handle

Request body

sourcestring required

The payment method source. Existing payment method for the customer, e.g. existing card id ca_....

Example request

{
  "source": "ca_f96004cae4308473c92bea0638b5b688"
}

Response

Successful operation

sizeinteger required

Page size used in paginated list

countinteger required

Number of elements in current page. If less than page size it is the last page.

tostring required

Local date and time range used as to (exclusive)

fromstring required

Local date and time range used as from (inclusive)

next_page_tokenstring

Pagination token to use to get the next page. Notice that page size and range should be the same for all page requests. If not present the last page has been reached.

Example response

{
  "size": 50,
  "count": 50,
  "to": "2021-10-06T13:02:23.190",
  "from": "2021-09-06T13:02:23.190",
  "content": [
    {
      "id": "ca_fcfac2016614418f969fa5697383e47c",
      "state": "active",
      "created": "2015-04-04T12:40:56.656Z",
      "card": {
        "card_type": "visa_dk",
        "exp_date": "09-18",
        "masked_card": "457111XXXXXX3777"
      },
      "applepay": {
        "card_type": "visa_dk",
        "exp_date": "09-18",
        "masked_card": "457111XXXXXX3777"
      },
      "payment_type": "card"
    }
  ],
  "next_page_token": "MTYzMjkxNDc4NTAwMDoxMA"
}

Changes

No recorded changes to this operation across all 1 revision of this API.