Subscripciones
Subscriptions

Crear plan

Un plan determina el precio y la frecuencia con la que se cobrará la suscripción a un producto, entre otras características. Un plan se asocia a un sólo producto.

post/subscriptions/plan

Request

  • Base URL
    https://api.paylands.com/v1/sandbox
  • URL
    https://api.paylands.com/v1/sandbox/subscriptions/plan
  • Auth
    none required

Parameters

#/paths/~1/get/parameters/0 (unresolved $ref)

Request body

signatureSignature required(unresolved $ref)
nameName required(unresolved $ref)
external_idExternalId required(unresolved $ref)
productExternalId required(unresolved $ref)
amountAmount required(unresolved $ref)
intervalInterval required(unresolved $ref)
interval_typestring required

Determina cada cuánto tiempo debe cobrarse la subscripción. Los valores permitidos son "DAILY", "WEEKLY", "MONTHLY", "ANNUAL"

trial_availableTrialAvailable (unresolved $ref)
interval_offsetIntervalOffset (unresolved $ref)
interval_offset_typestring

Determina cuánto dura el periodo de prueba. Los valores permitidos son "DAILY", "WEEKLY", "MONTHLY", "ANNUAL"

Example request

{
  "signature": "121149a0ba5361191d740fa898784a8b",
  "name": "Other plan",
  "external_id": "other_plan",
  "product": "other_product",
  "amount": 100,
  "interval": 1,
  "interval_type": "MONTHLY",
  "trial_available": false,
  "interval_offset": null,
  "interval_offset_type": "WEEKLY"
}

Response

OK

messagestring required

Nombre del código HTTP de respuesta.

codenumber required

Código de respuesta.

current_timestring required

Fecha y hora de la petición.

Changes

No recorded changes to this operation across all 8 revisions of this API.