Returns a single org by its external ID. Implementation is required.
If multiple source tables are combined into the orgs entity, prefix the external_id with the source type to maintain uniqueness (e.g., vendor-123).
- Mock serverhttps://apidocs.bravotran.com/_mock/openapi/orgs/{external_id}
- https://api.yourserver.comhttps://api.yourserver.com/orgs/{external_id}
curl -i -X GET \
'https://apidocs.bravotran.com/_mock/openapi/orgs/{external_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Org details
ISO 3166-1 alpha-2 country code in uppercase, such as US or CH. The country determines how BravoTran reads dates on this org's invoices and whether BravoTran treats the org as a domestic vendor.
BravoTran rejects the org when country is missing or isn't a valid alpha-2 code, and the import of that org fails. Values such as us or USA are not corrected.
Payment scheduling parameter. For n_days_after_invoice_date, the number of days after the invoice date that payment is due. For day_n_month_after_invoice_date, the day of the month (in the month after the invoice date) that payment is due, from 1 to 31. Not used by the other rules. When null, BravoTran uses the account's default.
Rule governing when payments are scheduled when this org is a creditor:
n_days_after_invoice_date— payment is duedays_to_paydays after the invoice date (BravoTran may snap the date to the account's configured payment day of week)day_n_month_after_invoice_date— payment is due on daydays_to_payof the month after the invoice dateeom_following_receipt— payment is due at the end of the month following the invoice date (despite the name, this is computed from the invoice date, not the receipt date)always_ignore— payments for this creditor are always marked ignored and never scheduled
First line of the org's street address. BravoTran uses the street address, city, state, and postal code to match invoices to this org and to set up vendor payments.
Sending null leaves BravoTran's existing value unchanged; it doesn't clear it.
Second line of the org's street address, such as a suite, floor, or building. Used with address_line_1 to match invoices to this org and to set up vendor payments.
Sending null leaves BravoTran's existing value unchanged; it doesn't clear it.
City of the org's address. Used to match invoices to this org and to set up vendor payments.
Sending null leaves BravoTran's existing value unchanged; it doesn't clear it.
State, province, or region of the org's address. Used to match invoices to this org and to set up vendor payments.
Sending null leaves BravoTran's existing value unchanged; it doesn't clear it.
Postal or ZIP code of the org's address. Used to match invoices to this org and to set up vendor payments.
Sending null leaves BravoTran's existing value unchanged; it doesn't clear it.
{ "external_id": "feaa09da-9551-47f8-b30d-6e303b6ad6d5", "updated_at": "2024-12-24T19:04:29Z", "name": "Mediterranean Shipping Company S.A.", "code": "MSC", "is_active": true, "is_creditor": true, "is_debtor": false, "country": "CH", "days_to_pay": 30, "payments_scheduling_rule": "n_days_after_invoice_date", "address_line_1": "Chemin Rieu 12", "address_line_2": null, "city": "Geneva", "state": null, "postal_code": "1202", "contacts": [ { … }, { … } ] }