Skip to content

Payment methods

This is an intermediate step that must be performed before confirming the cart. See the PartnerSettings field in the catalog.

GET activity/paymentmethods

  • ReservationId: (string). Reservation identifier obtained when confirming the cart.
GET BASEURL/activity/paymentmethods?ReservationId=jahdurnwudr56
  • PaymentMethods: (list). Array of payment methods.

    • Id: (string). Payment method identifier.
    • Type: (byte). Payment method type.
    • Name: (string). Payment method name.
    • CommercialName: (string) Optional. Payment method commercial name.
    • EnableSendByEmail: (boolean) Optional. Indicates whether this payment method can be used to automatically send a payment link by email.
    • Fields: (list). Array of fillable fields associated with the payment method. These fields can be specified when creating a transaction.
      • Id: (string). Field identifier.

      • Name: (string). Field name.

      • IsRequired: (boolean). Indicates whether the field is required.

      • RegexValidation: (string) Optional. Regular expression that the value entered in the field must satisfy.

      • RegexValidationErrorMessage: (string) Optional. Error message to show to the user if the regular expression is not satisfied.

      • DefaultValue: (string) Optional. Default field value to show to the user.

      • DataType: (byte). Indicates the data type the field value must have.

  • Success (boolean): value that indicates whether the call was processed correctly or not.

  • Timestamp (dateTime): time at which the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff).

  • ErrorMessage (string): error message explaining why the request was not successful. If it was correct, it will return null.

  • ErrorCodes (string[]): list of codes that identify the errors that occurred in the call.

  • ErrorEntityBreakDown (list): list that contains objects with the name and ID in case of error.

    • Id (string): identifier
    • Name (string): related name of the identifier.
{
"PaymentMethods":
[
{
"Id": "c89jkj6jf16zs",
"Type": 1,
"Name": "Tarjeta Bancaria",
"CommercialName": "Tarjeta Bancaria"
},
{
"Id": "tm558kgc97amr",
"Type": 2,
"Name": "Transferencia bancaria",
"CommercialName": "Transferencia bancaria"
}
],
"Success": true,
"Timestamp": "2021-02-18T17:02:27.8165916"
}