Card

Create card

Attach a credit card (tokenized via Stripe) to the current user.

post/card

Request body

tokenstring required

Stripe card token. Learn how to create one here.

Example request

{
  "token": "tok_1N3T00LkdIwHu7ixt44h1F8k"
}

Response

ID of the card.

datastring required

ID of the card.

Example response

{
  "data": "crd_XXXXXXXXXXXXXXXXXXXXXXXXX"
}

Changes

Changed in 5 of the 41 revisions of this API.632

  • 1c6726b12e29424See the full diff
    • the response's body type/format changed from / to object/ for status 400

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 401

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 429

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 500

      response-body-type-changed

    • removed ErrorResponse from the response body allOf list for the response status 400

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 401

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 429

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 500

      response-body-all-of-removed

    • added the optional property details to the response with the 400 status

      response-optional-property-added

    • added the optional property details to the response with the 401 status

      response-optional-property-added

    • added the optional property details to the response with the 429 status

      response-optional-property-added

    • added the optional property details to the response with the 500 status

      response-optional-property-added

    • added the optional property param to the response with the 400 status

      response-optional-property-added

    • added the optional property param to the response with the 401 status

      response-optional-property-added

    • added the optional property param to the response with the 429 status

      response-optional-property-added

    • added the optional property param to the response with the 500 status

      response-optional-property-added

    • added the required property code to the response with the 400 status

      response-required-property-added

    • added the required property code to the response with the 401 status

      response-required-property-added

    • added the required property code to the response with the 429 status

      response-required-property-added

    • added the required property code to the response with the 500 status

      response-required-property-added

    • added the required property message to the response with the 400 status

      response-required-property-added

    • added the required property message to the response with the 401 status

      response-required-property-added

    • added the required property message to the response with the 429 status

      response-required-property-added

    • added the required property message to the response with the 500 status

      response-required-property-added

    • added the required property type to the response with the 400 status

      response-required-property-added

    • added the required property type to the response with the 401 status

      response-required-property-added

    • added the required property type to the response with the 429 status

      response-required-property-added

    • added the required property type to the response with the 500 status

      response-required-property-added

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

  • 43ff7af31b1e13See the full diff
    • removed the required property result from the response with the 200 status

      response-required-property-removed

    • api operation id postCard was added

      api-operation-id-added

    • api tag Cards added

      api-tag-added

    • added the required property data to the response with the 200 status

      response-required-property-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog