# Update references

`PATCH /v3/session/{sessionId}/order/update/references`

Section: Order Management. Base URLs: Playground https://playground-api.briqpay.com, Production https://api.briqpay.com. Auth: HTTP Basic.

Update order references of a completed session.

## Path parameters

- `sessionId` (string, required): **Format:** UUID

## Headers

- `Content-Type` (string, one of: `"application/json"`)
- `Accept` (string, one of: `"application/json"`)
- `Authorization` (string): Format: "Basic <base64(username:secret)>"

## Request body

- `references` (object, required): Your own references, we recommend using property name "reference1" as your order reference for payments since this property is default for multiple payment providers. But any additional property name can be used e.g. customerId. Example: {  "reference1": "000", "customerId": "12345" }

## Request example

```bash
curl -X PATCH 'https://playground-api.briqpay.com/v3/session/{sessionId}/order/update/references' \
  -H 'Authorization: Basic <base64(merchantId:secret)>' \
  -H 'Content-Type: application/json'
```

No request body example in the spec yet.

## Responses

### 204

No content.

### 400

- `error` (object)
  - `code` (string, one of: `"INVALID_CREDENTIALS"`, `"INVALID_DATA"`, `"ORDER_NOT_COMPLETED"`, `"ORDER_REJECTED"`, `"ORDER_PENDING"`, `"ORDER_CANCELLED"`, `"UPDATE_NOT_ALLOWED"`, `"UPDATE_NOT_SUPPORTED"`, `"UNKNOWN"`)
  - `message` (string)

### 403

- `error` (object)
  - `code` (string, one of: `"INVALID_CREDENTIALS"`, `"INVALID_API_KEY"`, `"AUTH_SECRET_EXPIRED"`)
  - `message` (string)

### 404

- `error` (object)
  - `code` (string, one of: `"SESSION_NOT_FOUND"`)
  - `message` (string)
