POST
/
v1
/
c
/
contract
curl --request POST \
  --url http://127.0.0.1:8080/v1/c/contract \
  --header 'Content-Type: application/json' \
  --header 'wb-key: <api-key>' \
  --data '{
  "activation": "2023-11-07T05:31:56Z",
  "automatic_payment": true,
  "currency": "usd",
  "customer": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
  "cycle": "once",
  "discount_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
  "feature_configuration": {},
  "free_trial_days": 1,
  "invoice_trigger": "immediate",
  "is_pending": true,
  "plan": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
  "pricing_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
  "unit_count_configuration": {}
}'
This response does not have an example.

Authorizations

wb-key
string
header
required

Body

application/json

Configuration used by a WbCustomer to sign up a Customer to a plan

Response

200

Updated