Resources
XML 2.9 → JSON v3 migration
Protocol: JSON v3 · XML 2.9OpenAPI
Operation mapping and format differences.
Below are operations available in both protocols. The mapping comes from reference pairs; XML-only methods are not included.
| JSON v3 | XML 2.9 | Operation |
|---|---|---|
POST /api/v3/projects/{projectId}/invoices | createInvoice | Create invoice |
GET /api/v3/projects/{projectId}/invoices/{invoiceId} | getInvoice | Get invoice by id |
POST /api/v3/projects/{projectId}/invoices/{invoiceId}/authorize | authorizeInvoice | Authorize invoice with PIN |
POST /api/v3/projects/{projectId}/invoices/{invoiceId}/cancel | cancelInvoice | Cancel invoice |
POST /api/v3/projects/{projectId}/invoices/{invoiceId}/refund | refundInvoice | Refund payment |
POST /api/v3/projects/{projectId}/contracts | createCustomerContract | Create binding |
POST /api/v3/projects/{projectId}/contracts/{contractId}/authorize | authorizeCustomerContract | Authorize binding |
POST /api/v3/projects/{projectId}/contracts/{contractId}/cancel | cancelCustomerContract | Cancel binding |
POST /api/v3/projects/{projectId}/billing/check | checkCustomerBillingSupport | Check DCB availability |
What changes
Signature: JSON v3 uses
X-Login,X-Timestamp,X-Signature-Version,X-Signature; XML uses<Header><Authentication>.Errors: JSON returns an HTTP status and
error.code; XML returns HTTP 200 andResultCode.Body: JSON is an object; XML is
<Request>with the operation root element.Identifiers: JSON uses snake_case (
merchant_contract_id), XML uses PascalCase (MerchantContractID).