Skip to Content

Create contract

XML: CreateCustomerContract · JSON: POST /contracts

Links a subscriber (MSISDN) to a project for recurring payments. After creation a PIN is “sent” to the subscriber (any PIN works in the sandbox).

FieldTypeReq.Description
ProjectIDintYesProject ID
ClientIPstring(39)NoSubscriber IP
MSISDNstring(20)YesPhone number
MerchantContractIDstring(64)YesContract ID in the Merchant’s system

Response

FieldTypeDescription
ContractIDguidUnique contract ID — store it for payments
AuthorizationTypeenumSMS_PIN / EXTERNAL
ExpirationTimeUtcdatetimeContract expiration time
MSISDN, Country, NetworkID, OperatorID—Subscriber data
Request and response (JSON)
// POST /api/v3/projects/1001/contracts { "client_ip": "87.101.32.12", "customer": { "type": "mobile_phone", "msisdn": "79600000000" }, "merchant_contract_id": "contract-123" } // 201 Created { "success": true, "data": { "contract_id": "16449203-0000-009b-a125-351b7bfbd207", "authorization_type": "SMS_PIN", "expires_at": "2026-06-25T14:00:00Z", "merchant_contract_id": "contract-123" } }