biterp

Desfazer recebimento manual

DELETE
/receivables/{id}/receive/{transactionId}
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.biterp.ai/receivables/{id}/receive/{transactionId}"
{
  "receivable": {
    "id": "string",
    "record_number": 0,
    "customer_id": "string",
    "financial_account_id": "string",
    "payment_method_id": "string",
    "financial_category_id": "string",
    "reference_code": "string",
    "amount": "1500.000000",
    "discount_amount": "0.000000",
    "surcharge_amount": "0.000000",
    "status": "pending",
    "issue_date": "2019-08-24",
    "due_date": "2019-08-24",
    "paid_at": "2019-08-24T14:15:22Z",
    "installment_group_id": "string",
    "installment_number": 0,
    "installment_count": 0,
    "sales_order_id": "string",
    "invoice_id": "string",
    "description": "string",
    "notes": "string",
    "metadata": {},
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "deleted_at": "2019-08-24T14:15:22Z"
  },
  "reversed_transaction_id": "b2101887-4d87-4d06-93fc-18f58bd248d8",
  "removed_allocation_id": "915a1243-a6e0-42b9-bb8c-374e23149af1",
  "financial_account_id": "12004dd2-b67b-4561-b5c8-278b86c292fd"
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}
{
  "status_code": 422,
  "message": "Could not resolve provided geography fields",
  "error": "Unprocessable Entity",
  "code": "string",
  "details": {
    "fields": {
      "country_code": [
        "Could not resolve country from '1112' (tried ISO2, ISO3, numeric code and names)"
      ],
      "city": [
        "Could not resolve city from 'CidadeQueNaoExiste' in country 'BR'"
      ]
    }
  }
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}