New Light partners with Amesto GlobalLight partners with Amesto Global Read the announcement

Generate receipt upload URL

POST
https://api.light.inc/v1/card-transactions/{cardTransactionId}/receipt-upload-url

Generates a secure upload URL for receipt documents

Permissions checked: card-transactions/own:update (CARDHOLDER, COMPANY_ADMIN) and card-transactions/receipts:update (AP_CLERK, AUDITOR, COMPANY_ADMIN, CONTROLLER). What a call needs depends on the caller, the record and the request.

Authorization

Send one of these on every request. See Authentication for how to get credentials.

  • API key

    Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

  • Bearer token

Path parameters

  • cardTransactionId string · uuidrequired

Request body

application/json;charset=UTF-8

  • filename string

  • contentType string

Response

  • uploadUrl string · url

  • key string

  • metadata object