Skip to navigation

Claim Record Details - UPSERT

View as Markdown

This api is to insert and update claims in BIPO. Each object in Data is one claim, and its receipts go in Records.

FieldTypeRequiredDescription
RecordIDStringConditionalBIPO ID of the claim. Leave blank to create a new claim. To update, approve or cancel a claim, send the RecordID returned when the claim was created.
ExternalRequestIDStringNoYour own reference for the claim.
EmployeeCodeStringConditionalRequired when creating a claim. Cannot be changed on an existing claim.
ClaimCodeStringConditionalRequired when creating a claim. Cannot be changed on an existing claim.
ClaimDateDateNoClaim date (yyyy-MM-dd).
CurrencyCodeStringNoClaim currency. Cannot be changed on an existing claim.
ApprovalStatusStringNoNew claim: blank or A = Approved, PS = Pending Submission (draft). Existing claim: A approves a draft, C cancels an approved claim. Leave out to keep the current status.
RemarksStringNoClaim remarks.
RecordsArrayConditionalReceipts of the claim. A new claim needs at least 1 receipt. Leave out when you only change claim fields, approve or cancel.
Records[].RecordIDStringConditionalLeave blank to add a new receipt. To update a receipt, send its RecordID (from Claim Record Details - LIST).
Records[].ExternalRecordIDStringNoYour own reference for the receipt.
Records[].ExpenseCodeStringNoExpense of the receipt.
Records[].ReceiptDateDateNoReceipt date (yyyy-MM-dd).
Records[].ReceiptNoStringNoReceipt number.
Records[].ReceiptAmountDecimalNoReceipt amount. Must be greater than 0.
Records[].CurrencyCodeStringNoReceipt currency.
Records[].ExchangeRateDecimalNoLeave out to use the rate from Currency Exchange.
Records[].RemarksStringNoReceipt remarks.

Note:

  • The response returns the claim RecordID in key. Keep it to update, approve, cancel or delete the claim later.
  • Only the receipts listed in Records are changed. Receipts not listed are kept as they are.
  • A claim type with Multiple Receipt = No accepts 1 receipt only.
  • Claims are saved as an admin entry. An approved claim does not go through the approval workflow.
  • The claim type’s own rules (for example mandatory fields) are checked the same way as on the admin Claim Record screen.
  • Spare fields can also be sent on the claim or on a receipt when they are enabled in Field Selection.
  • Each claim in Data is processed on its own. One refused claim does not stop the others; see invalidRecords in the response.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
Datalist of objectsRequired
InterfaceCodestringRequired

Response

OK
dataobject
errorslist of any
messageslist of strings
errorCodeanyOptional