Skip to content

Commit 276c483

Browse files
authored
Merge pull request #16 from servicetitan/schema-update-9f597e98caab96fe2914417f9e1e07e01ededf98-30
Update API contract schemas
2 parents f02644d + ebd3b88 commit 276c483

File tree

16 files changed

+64
-20
lines changed

16 files changed

+64
-20
lines changed

st-schemas/account/response.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-04/schema#",
33
"title": "account.response",
44
"type": "object",
5-
"description": "Response for activating a customer's vendor account (updated)",
5+
"description": "Response for activating a customer's vendor account",
66
"additionalProperties": false,
77
"properties": {
88
"errorCode": {
@@ -164,6 +164,16 @@
164164
"additionalProperties": {
165165
"type": "string"
166166
}
167+
},
168+
"vendorIdentifiers": {
169+
"type": [
170+
"null",
171+
"object"
172+
],
173+
"description": "A map of identifiers specific to the Vendor, which will be passed back to the vendor on subsequent calls",
174+
"additionalProperties": {
175+
"type": "string"
176+
}
167177
}
168178
}
169179
}

st-schemas/account/response.sample.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"subAccountId": "subAccountId",
1212
"name": "name",
1313
"postalCode": "postalCode",
14-
"customFields": {}
14+
"customFields": {},
15+
"vendorIdentifiers": {}
1516
}
1617
],
1718
"hasMorePages": false,

st-schemas/accounts/response.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@
151151
"additionalProperties": {
152152
"type": "string"
153153
}
154+
},
155+
"vendorIdentifiers": {
156+
"type": [
157+
"null",
158+
"object"
159+
],
160+
"description": "A map of identifiers specific to the Vendor, which will be passed back to the vendor on subsequent calls",
161+
"additionalProperties": {
162+
"type": "string"
163+
}
154164
}
155165
}
156166
}

st-schemas/accounts/response.sample.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"subAccountId": "subAccountId",
1818
"name": "name",
1919
"postalCode": "postalCode",
20-
"customFields": {}
20+
"customFields": {},
21+
"vendorIdentifiers": {}
2122
}
2223
],
2324
"vendorIdentifiers": {}

st-schemas/bulk-pricing/response.sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"disposition": null,
2525
"status": "status",
2626
"message": "message",
27-
"startingDate": "2025-10-06T18:54:41.1462463+00:00"
27+
"startingDate": "2025-10-30T12:58:35.1070012+00:00"
2828
}
2929
]
3030
}

st-schemas/field-configuration-callbackname/request.sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"callbackName": "callbackName",
77
"purchaseOrder": {
88
"supplierBranchId": "supplierBranchId",
9-
"dateRequired": "2025-10-06T18:54:41.3935852+00:00",
9+
"dateRequired": "2025-10-30T12:58:35.3448997+00:00",
1010
"amount": 0.0,
1111
"shipTo": null,
1212
"isVendorCounterPickup": false,

st-schemas/pricing/response.sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"disposition": null,
2525
"status": "status",
2626
"message": "message",
27-
"startingDate": "2025-10-06T18:54:41.1008119+00:00"
27+
"startingDate": "2025-10-30T12:58:35.0580453+00:00"
2828
}
2929
]
3030
}

st-schemas/purchase-history-options/response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"properties": {
107107
"id": {
108108
"type": "string",
109-
"description": "Idenitifer for the sub option to be used in purchase history request in Values Collection. Presented to user in a dropdown\ne.g. templatId, dateRange, etc."
109+
"description": "Identifier for the sub option to be used in purchase history request in Values Collection. Presented to user in a dropdown\ne.g. templatId, dateRange, etc."
110110
},
111111
"name": {
112112
"type": "string",

st-schemas/purchaseorder/request.sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"accountId": "accountId",
99
"number": "number",
1010
"orderReferenceNumber": "orderReferenceNumber",
11-
"requiredOn": "2025-10-06T18:54:41.1828052+00:00",
12-
"date": "2025-10-06T18:54:41.1828109+00:00",
11+
"requiredOn": "2025-10-30T12:58:35.1454147+00:00",
12+
"date": "2025-10-30T12:58:35.1454215+00:00",
1313
"createdBy": "createdBy",
1414
"tax": 0.0,
1515
"shippingAmount": 0.0,

st-schemas/purchaseorderstatus/request.sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"accountId": "accountId",
99
"number": "number",
1010
"orderReferenceNumber": "orderReferenceNumber",
11-
"requiredOn": "2025-10-06T18:54:41.2262559+00:00",
12-
"date": "2025-10-06T18:54:41.2262618+00:00",
11+
"requiredOn": "2025-10-30T12:58:35.1848598+00:00",
12+
"date": "2025-10-30T12:58:35.1848660+00:00",
1313
"createdBy": "createdBy",
1414
"tax": 0.0,
1515
"shippingAmount": 0.0,

0 commit comments

Comments
 (0)