Skip to content

Payment Types

GET /payment_types

From 7.2.03. List the tenant's payment types. Use code as the payment_type value of a document (for example "5" for a bank transfer).

Request

GET /api/{account}/v4.0.0/payment_types/?nonce={nonce}
Authorization: Bearer <xa-token>

Parameters

Name In Type Required Description
nonce query integer (int64) No Client-generated unique sequential number

The list is short: no pagination or search.

Responses

200 — Success

An array of payment types:

Field Type Description
code string The value to send in a document's payment_type
name string The payment type's name in Gestix
type string M cash, D debit card, C credit card, B cheque, W bank transfer, O other
[
  {"code": "1", "name": "Dinheiro", "type": "M"},
  {"code": "2", "name": "Cartão de Débito", "type": "D"},
  {"code": "3", "name": "Cartão de Crédito", "type": "C"},
  {"code": "4", "name": "Cheque", "type": "B"},
  {"code": "5", "name": "Transferência Bancária", "type": "W"},
  {"code": "999", "name": "Outro", "type": "O"}
]

The codes and names are the tenant's own; the example shows the default table.

403 — Invalid or expired session token

405 — Method not allowed

The list is read-only: POST, PUT, PATCH and DELETE return 405.


See Also