curl --request PATCH \
--url https://api.mijnklantportaal.nl/v1/customer-offers/{offerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"acceptedAt": "2024-05-04 20:51:50",
"acceptedViaIp": "123.456.7.8.9",
"acceptedViaUserAgent": "Mozilla/5.0 (X11; Linux x86_64)...",
"rejectedAt": "2024-05-04 20:51:50"
}
'{
"id": "off_abc12345def678",
"customerId": "cst_abc12345def678",
"offerNumber": "2024-001",
"issuedAt": "2024-04-29",
"expiresAt": "2024-05-29",
"currency": "EUR",
"amount": "12.95",
"acceptedAt": "2024-05-14T21:00:00+02:00",
"acceptedViaIp": "123.456.7.8.9",
"acceptedViaUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36",
"acceptanceSignature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...",
"rejectedAt": "2024-05-14T21:00:00+02:00",
"createdAt": "2024-04-29T21:00:00+02:00",
"links": {
"customer": {
"href": "https://api.mijnklantportaal.nl/v1/customers/cst_abc12345def678",
"type": "<string>"
}
}
}Set the Customer Offer as accepted or rejected. This will, if connected, also update the integration
curl --request PATCH \
--url https://api.mijnklantportaal.nl/v1/customer-offers/{offerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"acceptedAt": "2024-05-04 20:51:50",
"acceptedViaIp": "123.456.7.8.9",
"acceptedViaUserAgent": "Mozilla/5.0 (X11; Linux x86_64)...",
"rejectedAt": "2024-05-04 20:51:50"
}
'{
"id": "off_abc12345def678",
"customerId": "cst_abc12345def678",
"offerNumber": "2024-001",
"issuedAt": "2024-04-29",
"expiresAt": "2024-05-29",
"currency": "EUR",
"amount": "12.95",
"acceptedAt": "2024-05-14T21:00:00+02:00",
"acceptedViaIp": "123.456.7.8.9",
"acceptedViaUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36",
"acceptanceSignature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA...",
"rejectedAt": "2024-05-14T21:00:00+02:00",
"createdAt": "2024-04-29T21:00:00+02:00",
"links": {
"customer": {
"href": "https://api.mijnklantportaal.nl/v1/customers/cst_abc12345def678",
"type": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the Customer Offer to change
Date and time of when the offer was accepted
"2024-05-04 20:51:50"
IP from which the offer was accepted. Will be omitted when acceptedAt is not provided
"123.456.7.8.9"
UserAgent which is used for accepting the offer. Will be omitted when acceptedAt is not provided
"Mozilla/5.0 (X11; Linux x86_64)..."
Date and time of when the offer was rejected
"2024-05-04 20:51:50"
Getting the updated Customer Offer
Customer Offer
ID of the offer, always starting with off_.
"off_abc12345def678"
ID of the customer which the offer belongs to.
"cst_abc12345def678"
Number of the offer as string.
"2024-001"
Issue date of the offer. Formatted as YYYY-mm-dd.
"2024-04-29"
Date on which the the offer expires. Formatted as YYYY-mm-dd.
"2024-05-29"
Currency of the offer amount.
"EUR"
Invoice offer as string.
"12.95"
Date and time the offer is marked as accepted. Written in ATOM format.
"2024-05-14T21:00:00+02:00"
IP address from which the offer was accepted.
"123.456.7.8.9"
User-Agent which is used to accept the offer.
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
base64 data string of the signature as PNG.
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAA..."
Date and time the offer is marked as rejected. Written in ATOM format.
"2024-05-14T21:00:00+02:00"
Date and time when the offer was added to MijnKlantportaal. Written in ATOM format.
"2024-04-29T21:00:00+02:00"
Show child attributes