Skip to content

Migrate Unused Credits of a traveler to and fro Company Credits

Request

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

Security
Bearer
Bodyapplication/jsonrequired
paymentSourceIdsArray of stringsrequired
updateCreditUsageTypeTostring(CreditUsageType)required

The type of credit usage to be updated to. This can be either COMPANY or PERSONAL. If passed Company, it means you are trying to update from personal to Company

Enum:"CREDIT_USAGE_TYPE_UNKNOWN""COMPANY""PERSONAL"
curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v3/air/company-credits/migrations \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "paymentSourceIds": [
      "string"
    ],
    "updateCreditUsageTypeTo": "CREDIT_USAGE_TYPE_UNKNOWN"
  }'

Responses

OK

Bodyapplication/json
migrationStatusArray of objects(MigrationResponseInfo)
Response
{ "migrationStatus": [ { … } ] }