checkout_com_payments

Update a checkout.com payment

Changed on

Update a checkout.com payment

patch/checkout_com_payments/{checkoutComPaymentId}

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/checkout_com_payments/{checkoutComPaymentId}
  • Auth
    HTTP bearer

Path parameters

checkoutComPaymentIdstring required

The resource's id

Request body

Example request

{
  "data": {
    "id": "XAyRWNUzyN",
    "attributes": {
      "token": "tok_4gzeau5o2uqubbk6fufs3m7p54",
      "_authorize": true,
      "_details": true,
      "_refresh": true,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "order": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      }
    }
  }
}

Response

The updated checkout.com payment object

Changes

    • breaking

      added the new required request property ///

    • breaking

      request property / was restricted to a list of enum values

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • info

      added the new optional request property //

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property default value checkout_com_payments was removed

    • info

      added the new checkout_com_payments enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status