Skip to main content
PATCH
/
offers
/
update-offer
/
v1
Update an offer
curl --request PATCH \
  --url https://api.collectpure.com/offers/update-offer/v1 \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "offerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "price": 123,
  "quantity": 4503599627370495,
  "buyerNotes": "<string>",
  "active": true,
  "premiumPercent": 1,
  "premiumDollar": 4503599627370495
}
'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "price": 123,
    "quantity": 123,
    "active": true,
    "buyerNotes": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
offerId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
price
integer

Price in cents

Required range: x <= 9007199254740991
quantity
integer
Required range: 0 <= x <= 9007199254740991
buyerNotes
string
Maximum string length: 500
active
boolean
premiumPercent
number
Required range: x >= 0
premiumDollar
integer

Premium in cents

Required range: 0 <= x <= 9007199254740991

Response

200 - application/json

Default Response

success
boolean
required
data
object
required