api/v1/orders/simswap

Method: POST https://simportal-api-staging.azurewebsites.net/api/v1/orders/simswap

Summary

Create a Sim Swap order

Request Information

URI Parameters

None.

Body Parameters

The SimSwapOrderModel contains the original SIM and the new SIM that will be swapped against

CreateSimSwapOrderModel
NameDescriptionTypeAdditional information
OriginalSimId

globally unique identifier

None.

NewSimId

globally unique identifier

None.

Reason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OriginalSimId": "585f6dbe-d884-4e6f-98af-cb6efbb8ae71",
  "NewSimId": "539fb2c4-f479-4a44-a658-ae42a149804c",
  "Reason": "sample string 3"
}

application/xml, text/xml

Sample:
<CreateSimSwapOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimPortalApi.Models.Orders">
  <Reason>sample string 3</Reason>
  <NewSimId>539fb2c4-f479-4a44-a658-ae42a149804c</NewSimId>
  <OriginalSimId>585f6dbe-d884-4e6f-98af-cb6efbb8ae71</OriginalSimId>
</CreateSimSwapOrderModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateSimSwapOrderModel'.

Response Information

Resource Description

OrderResponseModel
NameDescriptionTypeAdditional information
OrderId

globally unique identifier

None.

Created

date

None.

State

OrderState

None.

Response Formats

application/json, text/json

Sample:
{
  "OrderId": "bc5563fa-f518-40fd-8885-98e8b72d8c28",
  "Created": "2024-11-12T13:09:14.7420532+00:00",
  "State": 0
}

application/xml, text/xml

Sample:
<OrderResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimPortalApi.Models.Orders" />