Emburse expense-export-controller-v1 API
Get and post expense export information.
Get and post expense export information.
openapi: 3.0.0
info:
description: Api Documentation
version: '1.0'
title: Api Documentation Accounts expense-export-controller-v1 API
termsOfService: urn:tos
contact: {}
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://service.chromeriver.com
tags:
- name: expense-export-controller-v1
description: Get and post expense export information.
paths:
/v1/export-status:
post:
tags:
- expense-export-controller-v1
summary: Post status of an expense export.
description: This web service allows an external application to post status of an expense export.
operationId: updateExpenseExportStatusUsingPOST
parameters:
- name: chain-id
in: header
description: Used for tracking the flow of the request
required: false
schema:
type: string
- name: customer-code
in: header
description: Unique customer identifier provided by Chrome River
required: true
schema:
type: string
- name: export-id
in: header
description: Unique identifier for exported expense report
required: true
schema:
type: string
- name: x-api-key
in: header
description: API key for Authentication
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/ExportStatusModel'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
'400':
description: Customer Code is missing.
'401':
description: Customer Code is not authorized. Cannot get expense export IDs.
'404':
description: Expense Report export file not found for the specified exportId.
'409':
description: Conflict.
'422':
description: UnprocessableEntity
'503':
description: Service unavailable. Please try again later.
deprecated: false
/v1/export-status/re-post:
patch:
tags:
- expense-export-controller-v1
summary: Repost External Export Status By ExportIds.
description: This web service allows an external application to repost External Export Status By ExportIds.
operationId: repostExternalExportStatusByExportIdsUsingPATCH
parameters:
- name: chain-id
in: header
description: Used for tracking the flow of the request
required: true
schema:
type: string
- name: context
in: query
description: The context of the export (e.g. invoice, expense)
required: true
allowEmptyValue: false
schema:
type: string
enum:
- expense
- invoice
- name: customer-code
in: header
description: Unique customer identifier provided by Chrome River
required: true
schema:
type: string
- name: x-api-key
in: header
description: API key for Authentication
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/repostExternalExportStatusByExportIdsUsingPATCHListOfExportids'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
'400':
description: Bad Request
'404':
description: Resource not found for exportId.
'422':
description: UnprocessableEntity
'503':
description: Service unavailable.
deprecated: false
/v1/exports:
get:
tags:
- expense-export-controller-v1
summary: Retrieve either a list of incoming expense export IDs or export details for a specific expense export.
description: This web service allows an external application to fetch either a list of incoming expense export IDs or fetch export details for a specific export. To retrieve the list of export IDs, no export-id should be passed in the header of this call. To retrieve details of a specific export, the export-id header should be populated with the desired export ID.
operationId: getExportIdsUsingGET
parameters:
- name: chain-id
in: header
description: Used for tracking the flow of the request
required: false
schema:
type: string
- name: customer-code
in: header
description: Unique customer identifier provided by Chrome River
required: true
schema:
type: string
- name: present
in: query
required: false
schema:
type: boolean
- name: x-api-key
in: header
description: API key for Authentication
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ExportIdsModel'
'400':
description: Customer Code is missing.
'401':
description: Customer Code is not authorized. Cannot get expense export IDs.
'404':
description: Expense Report export file not found for the specified exportId.
'503':
description: Service unavailable. Please try again later.
deprecated: false
components:
schemas:
ExportIdsModel:
type: object
required:
- exportIds
properties:
exportIds:
type: array
example:
- 5F98D1D2-B67E-DDC5-EF62-2237531E8ADB
description: List of export IDs.
items:
type: string
title: ExportIdsModel
ExportStatusModel:
type: object
required:
- status
properties:
code:
type: string
example: SAP_G200
description: Arbitrary success/error code (optional). Max 50 characters.
description:
type: string
example: File exportId.xml has been successfully exported
description: Description (optional). Max 250 characters.
sendEmail:
type: boolean
example: true
description: 'Send an accounting sync email notification for errors. SendEmail (optional) is a boolean: [true | false]'
status:
type: string
example: success
description: Status of an expense export.
enum:
- success
- error
- transferred
title: ExportStatusModel
requestBodies:
repostExternalExportStatusByExportIdsUsingPATCHListOfExportids:
content:
application/json:
schema:
type: array
items:
type: string
description: exportIds
required: true
ExportStatusModel:
content:
application/json:
schema:
$ref: '#/components/schemas/ExportStatusModel'
description: Payload required to post status of an export
required: true