Welcome
Guides
Wingback.js
Advanced
API Reference
- Introduction
- Customer
- Contract
- Billing Portal
- Entitlements
- Usage
- Payment
- Balance
- Virtual Wallets (Credits)
- Invoices
Contract
Subscribe Customer to a Plan
POST
/
v1
/
c
/
contract
Copy
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": {}
}'
Copy
This response does not have an example.
Authorizations
Body
application/json
Configuration used by a WbCustomer to sign up a Customer to a plan
Response
200
Updated
Copy
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": {}
}'
Copy
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.