Skip to main content

Collection Method Service

Manages collection methods that define how payments can be collected for invoices. Collection methods configure the payment channels (SIMO ERV or interbank) and banking details used to receive payments.

Create Collection Method

POST /v1/collection-methods

Creates a new collection method for receiving payments.

Request Body:

{
"name": "EDM Pagamentos SIMO",
"type": "simo_erv",
"details": {
"entity_number": "17890",
"allow_installments": true,
"allow_reuses": false,
"nib": "000100000345678901048"
}
}
FieldTypeRequiredDescription
namestringYesCollection method name
typestringYesCollection method type (simo_erv or interbank)
detailsobjectYesConfiguration details for the collection method
details.entity_numberstringYesEntity number used to identify the collecting organization
details.allow_installmentsbooleanNoWhether installment payments are accepted
details.allow_reusesbooleanNoWhether the collection method can be reused across multiple invoices
details.nibstringNoBank identification number (Numero de Identificacao Bancaria)

Response:

{
"object": "collection_method",
"id": "cm_abc12345",
"name": "EDM Pagamentos SIMO",
"type": "simo_erv",
"details": {
"entity_number": "17890",
"allow_installments": true,
"allow_reuses": false,
"nib": "000100000345678901048"
},
"created_at": "2025-09-01T08:30:00Z",
"updated_at": "2025-09-01T08:30:00Z"
}

Get Collection Method

GET /v1/collection-methods/{id}

Retrieves a single collection method by its ID.

Path Parameters:

ParameterTypeDescription
idstringCollection method ID

Query Parameters:

ParameterTypeRequiredDescription
account_idstringYesAccount ID that owns the collection method

Response:

{
"object": "collection_method",
"collection_method": {
"id": "cm_abc12345",
"name": "EDM Pagamentos SIMO",
"type": "simo_erv",
"account_id": "acc_mz98765",
"details": {
"entity_number": "17890",
"allow_installments": true,
"allow_reuses": false,
"nib": "000100000345678901048"
},
"created_at": "2025-09-01T08:30:00Z",
"updated_at": "2025-09-01T08:30:00Z"
},
"error": null
}

List Collection Methods

GET /v1/collection-methods

Retrieves a paginated list of collection methods.

Query Parameters:

ParameterTypeRequiredDefaultDescription
account_idstringNo-Filter by account ID
page_sizeintegerNo50Max results per page (max: 100)
created_attimestampNo-Filter collection methods created from this date
created_at2timestampNo-Filter collection methods created up to this date
limitintegerNo-Maximum number of results to return

Response:

{
"object": "list",
"items": [
{
"id": "cm_abc12345",
"name": "EDM Pagamentos SIMO",
"type": "simo_erv",
"account_id": "acc_mz98765",
"details": {
"entity_number": "17890",
"allow_installments": true,
"allow_reuses": false,
"nib": null
},
"created_at": "2025-09-01T08:30:00Z",
"updated_at": "2025-09-01T08:30:00Z"
},
{
"id": "cm_def67890",
"name": "Transferencia Interbancaria BCI",
"type": "interbank",
"account_id": "acc_mz98765",
"details": {
"entity_number": "22450",
"allow_installments": false,
"allow_reuses": true,
"nib": "000400001234567890132"
},
"created_at": "2025-08-15T14:00:00Z",
"updated_at": "2025-08-20T09:45:00Z"
}
],
"has_more": false,
"next_page_token": null,
"error": null
}

Update Collection Method

PUT /v1/collection-methods

Updates an existing collection method.

Request Body:

{
"id": "cm_abc12345",
"name": "EDM Pagamentos SIMO Atualizado",
"type": "simo_erv",
"account_id": "acc_mz98765",
"entity_number": "17890",
"nib": "000100000345678901048",
"allow_installments": true,
"allow_reuses": true
}
FieldTypeRequiredDescription
idstringYesCollection method ID to update
namestringYesUpdated collection method name
typestringNoCollection method type (simo_erv or interbank)
account_idstringYesAccount ID that owns the collection method
entity_numberstringNoUpdated entity number
nibstringNoUpdated bank identification number
allow_installmentsbooleanNoWhether installment payments are accepted
allow_reusesbooleanNoWhether the collection method can be reused

Response:

{
"object": "collection_method",
"collection_method": {
"id": "cm_abc12345",
"name": "EDM Pagamentos SIMO Atualizado",
"type": "simo_erv",
"account_id": "acc_mz98765",
"details": {
"entity_number": "17890",
"allow_installments": true,
"allow_reuses": true,
"nib": "000100000345678901048"
},
"created_at": "2025-09-01T08:30:00Z",
"updated_at": "2025-09-10T11:15:00Z"
},
"error": null
}

Delete Collection Method

DELETE /v1/collection-methods

Deletes a collection method.

Query Parameters:

ParameterTypeRequiredDescription
idstringYesCollection method ID to delete
account_idstringYesAccount ID that owns the collection method

Response:

{
"object": "collection_method",
"error": null
}

Collection Method Types

TypeDescription
simo_ervSIMO ERV (Sistema Interbancario de Mocambique - Entidade Referencia Virtual). Uses entity number and reference number for payment identification.
interbankInterbank transfer. Uses NIB (Numero de Identificacao Bancaria) for direct bank-to-bank transfers.