Skip to main content
POST
/
open
/
api
/
phone
/
create
Create phone
curl --request POST \
  --url https://user.pmock.com/api/open/api/phone/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "spuId": 123,
  "skuId": 123,
  "num": 2,
  "realResolution": true,
  "brand": "<string>",
  "width": 123,
  "height": 123,
  "phoneNumber": "<string>"
}
'
{
  "traceId": "",
  "code": 0,
  "msg": "",
  "data": null,
  "status": ""
}

Body

application/json
spuId
integer<int64>
required

phone spuId, obtain through Get product list api

skuId
integer<int64>
required

phone skuId, obtain through Get product list api

num
integer
required

Purchase quantity of mobile phones, minimum value is 1

Required range: x >= 1
realResolution
boolean

whether to use the actual device resolution

brand
string

brand name, obtain through Get list brand API

width
integer

resolution width, If you fill in the brand name, it must be consistent with the value returned by the Get list brand API.

height
integer

resolution height, If you fill in the brand name, it must be consistent with the value returned by the Get list brand API.

phoneNumber
string

phone number, Set the mobile phone number stored within the device

Response

200 - application/json
traceId
string
required

Request link ID

code
integer
required

code

msg
string
required

Request return message

status
string
default:finish
required

Status, representing whether this is an instant completion or waiting state, finish or pending

data
null

Request return data