POST /v1/company/:companyId/country/:countryId/payment| Key | Value | Required |
|---|---|---|
Authorization | Bearer <API_KEY> | ✅ |
Content-Type | application/json | ✅ |
| Parameter | Type | Description | Required |
|---|---|---|---|
companyId | string | Unique identifier of the company | ✅ |
countryId | string | Unique identifier of the country (pricing region) | ✅ |
| Field | Type | Description | Required |
|---|---|---|---|
customer_identifier | string | Unique identifier for the customer (e.g., email, user ID) | ✅ |
plan_id | string | The plan identifier you want to subscribe to | ✅ |
plan_type | string | Type of subscription plan (MONTHLY or YEARLY) | ✅ |
payment_component | string | Defines what is being charged (e.g., PLAN, ADDON) | ✅ |
| Field | Type | Description |
|---|---|---|
status | boolean | Indicates if the API request was successful |
value.transaction_tsid | string | Unique transaction identifier for the created payment |
{
"status": true,
"value": {
"transaction_tsid": "TRN-0MSC9073DVBTK"
}
}| Code | Description |
|---|---|
| 400 | Missing or invalid request parameters |
| 401 | Invalid or missing API key |
| 404 | Company or country not found |
| 500 | Internal server error |