Get an offer
curl --request GET \
--url https://coreapi.io/api/offers/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://coreapi.io/api/offers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coreapi.io/api/offers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://coreapi.io/api/offers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "<string>",
"number": "<string>",
"status": "open",
"acceptanceMode": "click",
"dealType": "new_business",
"recipients": [
{
"email": "jsmith@example.com",
"role": "read",
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
}
],
"documents": {
"signed": {
"id": "<string>",
"filename": "<string>",
"url": "<string>"
},
"auditLog": {
"id": "<string>",
"filename": "<string>",
"url": "<string>"
},
"purchaseOrder": {
"id": "<string>",
"filename": "<string>",
"url": "<string>"
}
},
"name": "<string>",
"locale": "de",
"validUntil": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"issuedAt": "2023-11-07T05:31:56Z",
"signedAt": "2023-11-07T05:31:56Z",
"contractValue": {
"amount": 123,
"currencyCode": "EUR",
"precision": 123
},
"proposal": {},
"sections": [
{}
],
"autoActivateSubscription": true,
"customVariables": {},
"links": {
"self": "<string>",
"approval": "<string>"
},
"customer": {
"id": "<string>",
"name": "<string>"
},
"subscription": {
"id": "<string>",
"number": "<string>"
},
"contactPerson": {
"id": "<string>",
"name": "<string>"
},
"salesChannel": {
"id": "<string>",
"name": "<string>",
"brandName": "<string>"
}
}Angebote
Get an offer
Beta. This endpoint is unstable and may still change without notice. Pin against the dated version and watch the changelog.
Returns the canonical v2 offer resource: structured contract value, grouped documents, recipients and links. The approval state is never embedded; fetch it via GET /api/offers//approval. This replaces the deprecated GET /offers/.
GET
/
api
/
offers
/
{id}
Get an offer
curl --request GET \
--url https://coreapi.io/api/offers/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://coreapi.io/api/offers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coreapi.io/api/offers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://coreapi.io/api/offers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "<string>",
"number": "<string>",
"status": "open",
"acceptanceMode": "click",
"dealType": "new_business",
"recipients": [
{
"email": "jsmith@example.com",
"role": "read",
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>"
}
],
"documents": {
"signed": {
"id": "<string>",
"filename": "<string>",
"url": "<string>"
},
"auditLog": {
"id": "<string>",
"filename": "<string>",
"url": "<string>"
},
"purchaseOrder": {
"id": "<string>",
"filename": "<string>",
"url": "<string>"
}
},
"name": "<string>",
"locale": "de",
"validUntil": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"issuedAt": "2023-11-07T05:31:56Z",
"signedAt": "2023-11-07T05:31:56Z",
"contractValue": {
"amount": 123,
"currencyCode": "EUR",
"precision": 123
},
"proposal": {},
"sections": [
{}
],
"autoActivateSubscription": true,
"customVariables": {},
"links": {
"self": "<string>",
"approval": "<string>"
},
"customer": {
"id": "<string>",
"name": "<string>"
},
"subscription": {
"id": "<string>",
"number": "<string>"
},
"contactPerson": {
"id": "<string>",
"name": "<string>"
},
"salesChannel": {
"id": "<string>",
"name": "<string>",
"brandName": "<string>"
}
}Autorisierungen
Antwort
The offer resource.
The canonical v2 representation of an offer.
War diese Seite hilfreich?