latestOpenAPI 3.0.32026-08-101200629.5 KB

2c51a28d0f48

Compras
Pagamentos

Criar Cabeçalho de Pagamentos

Criar Cabeçalho de Pagamentos

post/api/v1/commercial_purchases_payments

Request body

cash_account_idnumber
{"stackTrail":"paths:/api/v1/commercial_purchases_payments:post:requestBody:content:application/json:schema:properties:check_number","oasType":"schema","type":"unknown","example":null,"nullable":true}
company_idnumber
country_idnumber
currency_conversion_ratenumber
currency_idnumber
datestring
document_series_idnumber
gross_totalnumber
internal_observationsstring
net_totalnumber
observationsstring
payment_mechanismstring
supplier_idnumber
{"stackTrail":"paths:/api/v1/commercial_purchases_payments:post:requestBody:content:application/json:schema:properties:third_party_id","oasType":"schema","type":"unknown","example":null,"nullable":true}
{"stackTrail":"paths:/api/v1/commercial_purchases_payments:post:requestBody:content:application/json:schema:properties:third_party_type","oasType":"schema","type":"unknown","example":null,"nullable":true}

Example request

{
  "cash_account_id": 2,
  "company_id": 800000046,
  "country_id": 1,
  "currency_conversion_rate": 1,
  "currency_id": 1,
  "date": "2024-02-29",
  "document_series_id": 12,
  "gross_total": 11.3,
  "internal_observations": "Comentário interno",
  "observations": "Comentários visíveis",
  "payment_mechanism": "MO",
  "supplier_id": 9
}