---
title: "Migrate Unused Credits of a traveler to and fro Company Credits"
method: POST
path: "/v3/air/company-credits/migrations"
tags: ["Air Credits"]
---

# Migrate Unused Credits of a traveler to and fro Company Credits

`POST /v3/air/company-credits/migrations`

## Request

- Base URL: `https://api-ext-sboxmeta.partners.spotnana.com`
- URL: `https://api-ext-sboxmeta.partners.spotnana.com/v3/air/company-credits/migrations`
- Auth: HTTP bearer

This API will be migrate unused credits from individual credits to company credits and vice versa.

## Request body

- MigrateUnusedCreditsToCompanyCreditsRequest: Request body for migrating unused credits
  - `paymentSourceIds` string[], required
  - `updateCreditUsageTypeTo` 'CREDIT_USAGE_TYPE_UNKNOWN' | 'COMPANY' | 'PERSONAL', required: Usage type of the credit.

## Response `200`

OK

- MigrateUnusedCreditsToCompanyCreditsResponse: Response body for migrating unused credits
  - `migrationStatus` MigrationResponseInfo[]
    - `paymentSourceId` string: Unique identifier of the payment source.
    - `status` 'STATUS_UNKNOWN' | 'SUCCESS' | 'FAILED': Status of the credit.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: The specified resource was not found.

---

[API](https://skmtc.dev/spotnana/apis/air-api.md) - [All operations](https://skmtc.dev/spotnana/apis/air-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spotnana/apis/air-api/revisions/33dcaecde45b?raw)
