Payment

Returns the rate of the room type selected, based on the provided parameters

post/postCreditCard

Request

  • Base URL
    https://api.cloudbeds.com/api/v1.3
  • URL
    https://api.cloudbeds.com/api/v1.3/postCreditCard
  • Auth
    • API key in header x-api-key
    • or OAuth 2
      Authorization code
      Scopes: write:payment

Request body application/x-www-form-urlencoded

propertyIDstring
reservationIDstring
cardTokenstring nullable

A card token provided by StripeJS (tok_ prefixed) or /vault/v1/tokens/card (uuid formatted). Not required if paymentMethodId is provided.

paymentMethodIdstring nullable

Payment Method ID provided by the Payment Element SDK (begins with cbpm_). Not required if cardToken is provided.

returnUrlstring nullable

client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter result will be added to query string with possible values: - failed if 3ds challenge is not passed - successful if 3ds challenge is passed If not provided for card with 3ds the request will be rejected

Response

200 Response

successboolean

Returns if the request could be completed

Changes