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": "89ce6949-2085-4e5a-9019-241b079dcc12",
  "NewSimId": "ef5128d8-4252-40d2-a96d-95bb0c124d68",
  "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>ef5128d8-4252-40d2-a96d-95bb0c124d68</NewSimId>
  <OriginalSimId>89ce6949-2085-4e5a-9019-241b079dcc12</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": "d28c3cc9-a1cb-4d4a-ad29-f160b56ab352",
  "Created": "2024-04-25T00:47:00.556241+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" />