---
title: "Creates an order completion for an in progress order base"
method: POST
path: "/ocapi/v1/orders/{orderId}/completion"
tags: ["Completion"]
---

# Creates an order completion for an in progress order base

`POST /ocapi/v1/orders/{orderId}/completion`

An order completion is automatically created upon completion of a successful order embedded payment
but must be manually created for zero value orders, unpaid orders or orders paid entirely by order gift card payment payments.

#### Licenses Required


- Vista.Ocapi
- Vista.Ocapi.EmbeddedPayment

## Path parameters

- `orderId` string, required

## Headers

- `Connect-Region-Code` string

## Response `200`

Success

- union — Represents the completion of an in progress order base
  - OcapiV1OrdersCompletionsOrderCompletion — Represents the completion of an in progress order base
    - `orderId` string, required — Gets the unique identifier of the in progress order base
    - `orderType` 'Standard' | 'GiftShop' | 'Subscription', required — Represents the type of an order base
    - `status` 'Pending' | 'Completed' | 'Failed', required — Represents the status of an order completion
    - `transactionNumber` integer, nullable — Gets the number generated by the site that can be used to identify and collect the transaction
    - `updatedOrderExpiresAt` string, date-time, nullable — Gets the updated date and time that the in progress order base expires
  - OcapiV1OrdersCompletionsStandardOrderCompletion — Represents the completion of an in progress standard order
    - `orderId` string, required — Gets the unique identifier of the in progress order base
    - `orderType` 'Standard' | 'GiftShop' | 'Subscription', required — Represents the type of an order base
    - `status` 'Pending' | 'Completed' | 'Failed', required — Represents the status of an order completion
    - `transactionNumber` integer, nullable — Gets the number generated by the site that can be used to identify and collect the transaction
    - `updatedOrderExpiresAt` string, date-time, nullable — Gets the updated date and time that the in progress order base expires
    - `journeyReference` string, required — Gets the identifier created on order completion that will be linked to a journey entity
    - `bookingId` string, required — Gets the booking identifier generated by the site that can be used to identify and collect the booking

## Other responses

- `400` — Order cannot be completed.
- `404` — Order does not exist.

---

[API](https://skmtc.dev/vista/apis/vista-digital-platform.md) · [All operations](https://skmtc.dev/vista/apis/vista-digital-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vista/vista-digital-platform/revisions/3a81c0aed14e/schema)
