- BOMs
- Gets Boms that user has read access toGET
- Creates a Bom using Cofactr DataPOST
- Creates a Bom using raw bomline data and performs searches to convert into Cofactr DataPOST
- Gets a BomGET
- Upsert BOM AsyncPUT
- Updates a BomPATCH
- Deletes a Bom if still unapproved. Archives a bom if approved.DELETE
- Approves an unapproved Bom.POST
- Gets Bom Lines on a Bom.GET
- Creates a new bomline on a Bom using Cofactr data. If a bomline with the provided part exists it will sum the quants instead of duplicating lines.POST
- Gets a BomLineGET
- Updates a BomLinePATCH
- Removes a Bomline from a Bom.DELETE
- Attempts to create a new Bomline using raw data and performs searches to convert into Cofactr Data. If a Bomline with the same part and refdes exists it will sum the quants instead of duplicating lines.POST
- Programs
- Gets Programs
- Creates a Program
- Gets a Program
- Updates a Program
- Deletes a Program
- Gets Program Availabilities
- Gets Program Availabilities Async
- Gets Program Reference Pricing
- Get Programs Lines
- Get Programs Line
- Update Programs Line
- Delete Programs Line
- Create Programs Lines
- Get Program Part Overrides
- Create Program Part Overrides
- Get Program Part Override
- Update Program Part Override
- Delete Program Part Override
- Account
- Reporting
- Email
- Auth
- Async Jobs
- Stock Documents
- Suppliers
- Parts
- Purchases
- Get Purchase OrderGET
- Create Purchase OrderPOST
- Update Purchase OrderPATCH
- Delete Purchase OrderDELETE
- Get Purchase LinesGET
- Get Purchase LineGET
- Create Purchase LinePOST
- Update Many Purchase LinesPATCH
- Delete Purchase LineDELETE
- Get NoPart Purchase LinesGET
- Create NoPart Purchase LinePOST
- Update Many NoPart Purchase LinesPATCH
- Delete NoPart Purchase LineDELETE
- Create Purchase EventPOST
- Update Supplier BillPATCH
- Update Supplier Bill LinePATCH
- Create Supplier BillPOST
- Create Supplier Bill LinePOST
- Teams
- Custom Properties
- Stock Lots
- Tags
- Rfqs
- RfqLines
- SupplierQuote
- SupplierQuoteLines
Update Supplier Bill
PATCH
/v1/supplier_bills/{supplier_bill_id}/
Request
Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Path Params
supplier_bill_id
string
required
Body Params application/json
sales_tax
string <decimal>
Sales tax
Default:
0.000000
duties
string <decimal>
Duties
Default:
0.000000
shipping
string <decimal>
Shipping
Default:
0.000000
other_total
string <decimal>
Other total
Default:
0.000000
discounts
string <decimal>
Discounts
Default:
0.000000
cofactr_fees
string <decimal>
Cofactr fees
Default:
0.000000
sub_total
string <decimal>
Sub total
Default:
0.000000
total
string <decimal>
Total
Default:
0.000000
total_paid
string <decimal>
Total paid
Default:
0.000000
payment_due_date
string <date>
Payment due date
invoice_number
string
Invoice number
notes
string
Notes
ext_billing_id
string
Ext billing id
org_supplier
string <uuid>
Org supplier
purchase_order_id
string <uuid>
Purchase order id
kit_request_id
string <uuid>
Kit request id
custom_properties
object
Custom properties
Additional properties
string
optional
Example
{
"sales_tax": "0.000000",
"duties": "0.000000",
"shipping": "0.000000",
"other_total": "0.000000",
"discounts": "0.000000",
"cofactr_fees": "0.000000",
"sub_total": "0.000000",
"total": "0.000000",
"total_paid": "0.000000",
"payment_due_date": "2019-08-24",
"invoice_number": "string",
"notes": "string",
"ext_billing_id": "string",
"org_supplier": "c34ee560-ebd8-4087-a921-0c38b105cd7c",
"purchase_order_id": "21637704-484e-4c9d-a7ca-e34984d27d80",
"kit_request_id": "642090fe-e594-4751-857b-dd7c482489b8",
"custom_properties": {
"property1": "string",
"property2": "string"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/v1/supplier_bills//' \
--header 'Content-Type: application/json' \
--header 'Authorization;' \
--data-raw '{
"sales_tax": "0.000000",
"duties": "0.000000",
"shipping": "0.000000",
"other_total": "0.000000",
"discounts": "0.000000",
"cofactr_fees": "0.000000",
"sub_total": "0.000000",
"total": "0.000000",
"total_paid": "0.000000",
"payment_due_date": "2019-08-24",
"invoice_number": "string",
"notes": "string",
"ext_billing_id": "string",
"org_supplier": "c34ee560-ebd8-4087-a921-0c38b105cd7c",
"purchase_order_id": "21637704-484e-4c9d-a7ca-e34984d27d80",
"kit_request_id": "642090fe-e594-4751-857b-dd7c482489b8",
"custom_properties": {
"property1": "string",
"property2": "string"
}
}'
Responses
🟢200Success
application/json
Body
id
string <uuid>
Id
synced_from_integration
boolean
Synced from integration
synced_from_integration_at
string <date-time>
Synced from integration at
integration_source_name
string
Integration source name
>= 1 characters
integration_record_id
string
Integration record id
>= 1 characters
notes
string
Notes
>= 1 characters
invoice_number
string
Invoice number
<= 255 characters
sales_tax
string <decimal>
Sales tax
duties
string <decimal>
Duties
shipping
string <decimal>
Shipping
other_total
string <decimal>
Other total
discounts
string <decimal>
Discounts
sub_total
string <decimal>
Sub total
cofactr_fees
string <decimal>
Cofactr fees
total
string <decimal>
Total
total_paid
string <decimal>
Total paid
connection_type
enum<string>
Connection type
Allowed values:
cofactr_paydirectsupplier_network
archived_at
string <date-time>
Archived at
approved_at
string <date-time>
Approved at
received_at
string <date-time>
Received at
voided_at
string <date-time>
Voided at
paid_at
string <date-time>
Paid at
payment_due_date
string <date>
Payment due date
ext_billing_id
string
Ext billing id
<= 255 characters
received_by
string <uuid>
Received by
archived_by
string <uuid>
Archived by
approved_by
string <uuid>
Approved by
voided_by
string <uuid>
Voided by
paid_by
string <uuid>
Paid by
org_id
string
Org id
processing_org_id
string
Processing org id
org_supplier_id
string
Org supplier id
purchase_order_id
string <uuid>
Purchase order id
kit_request_id
string
Kit request id
custom_properties
object
Custom properties
Example
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"synced_from_integration": true,
"synced_from_integration_at": "2019-08-24T14:15:22Z",
"integration_source_name": "string",
"integration_record_id": "string",
"notes": "string",
"invoice_number": "string",
"sales_tax": "string",
"duties": "string",
"shipping": "string",
"other_total": "string",
"discounts": "string",
"sub_total": "string",
"cofactr_fees": "string",
"total": "string",
"total_paid": "string",
"connection_type": "cofactr_pay",
"archived_at": "2019-08-24T14:15:22Z",
"approved_at": "2019-08-24T14:15:22Z",
"received_at": "2019-08-24T14:15:22Z",
"voided_at": "2019-08-24T14:15:22Z",
"paid_at": "2019-08-24T14:15:22Z",
"payment_due_date": "2019-08-24",
"ext_billing_id": "string",
"received_by": "bddb0072-16e3-43f3-b441-8926c9706607",
"archived_by": "b5dab088-5678-4dc8-a1b2-f7b300fd8a85",
"approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",
"voided_by": "5ecfc985-14a9-4a71-a20e-8b1b8395f2ab",
"paid_by": "389dc3b9-e8eb-4e38-981b-97cb5e189b11",
"org_id": "string",
"processing_org_id": "string",
"org_supplier_id": "string",
"purchase_order_id": "21637704-484e-4c9d-a7ca-e34984d27d80",
"kit_request_id": "string",
"custom_properties": {}
}
Modified at 2024-12-19 01:52:48