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 v3XML 2.9Operation
POST /api/v3/projects/{projectId}/invoicescreateInvoiceCreate invoice
GET /api/v3/projects/{projectId}/invoices/{invoiceId}getInvoiceGet invoice by id
POST /api/v3/projects/{projectId}/invoices/{invoiceId}/authorizeauthorizeInvoiceAuthorize invoice with PIN
POST /api/v3/projects/{projectId}/invoices/{invoiceId}/cancelcancelInvoiceCancel invoice
POST /api/v3/projects/{projectId}/invoices/{invoiceId}/refundrefundInvoiceRefund payment
POST /api/v3/projects/{projectId}/contractscreateCustomerContractCreate binding
POST /api/v3/projects/{projectId}/contracts/{contractId}/authorizeauthorizeCustomerContractAuthorize binding
POST /api/v3/projects/{projectId}/contracts/{contractId}/cancelcancelCustomerContractCancel binding
POST /api/v3/projects/{projectId}/billing/checkcheckCustomerBillingSupportCheck 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 and ResultCode.

  • 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).