Create/Update/Get Response

Response is same for create, update and get requests.

field

status

length

enum

type

String

description

approved, invalid-request or error

field

id

length

predefined

type

Integer

description

Subscription id

field

name

length

1-255

type

String

description

Name

field

message

length

-

type

String

description

OPTIONAL - available if status is error or invalid-request

field

customer_id

length

predefined

type

Integer

description

Customer id

field

subscription_id

length

predefined

type

Integer

description

Subscription id

field

next_charge_date

length

YYYY-MM-DD

type

Date

description

Subscription's next charge date

field

active_from

length

YYYY-MM-DD

type

Date

description

A date from which subscription is active for a customer

field

active_to

length

YYYY-MM-DD

type

Date

description

A date to which subscription is active for a customer

Response example:

{
  "id": 54,
  "status": "approved",
  "customer_id": 908,
  "subscription_id": 597,
  "active_from": "2023-02-12",
  "active_to": "2023-03-12",
  "next_charge_date": "2023-02-13"
}

Last updated