Skip to content

Commit f0810bb

Browse files
authored
Update Nullable Fields & Deprecation Notice (#31)
Updates the OpenAPI spec to mark some fields as nullable which were missing that annotation. Also links to the new official home for the spec which is intended to be kept up to date with a deprecation notice in the README.
1 parent b228d0f commit f0810bb

2 files changed

Lines changed: 37 additions & 25 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
> [!WARNING]
2+
>
3+
> CAUTION!
4+
>
5+
> This repository is DEPRECATED. We make no guarantees that changes to the API will be reflected here.
6+
>
7+
> For the most up-to-date documentation go to https://docs.shipstation.com/.
8+
19
![OpenAPI Logo](https://shipengine.github.io/img/openapi-logo.png) ShipEngine™ OpenAPI Definition
210
==============================================
311

@@ -22,7 +30,7 @@ View the ShipEngine API definition [online in your browser](https://shipengine.g
2230

2331

2432
### ![Postman Logo](https://shipengine.github.io/img/postman-logo-small.png) Postman
25-
The official [Postman reference collection](https://documenter.getpostman.com/view/305204/SW7W5V6o) for ShipEngine. Just import it into [Postman](https://getpostman.com) and immediately begin interacting with the ShipEngine API.
33+
The official [Postman reference collection](https://documenter.getpostman.com/view/305204/SW7W5V6o) for ShipEngine. Just import it into [Postman](https://getpostman.com) and immediately begin interacting with the ShipEngine API.
2634

2735

2836
New to ShipEngine? Download our [walkthrough collection instead](https://documenter.getpostman.com/view/305204/SW7XbA6V).

openapi.yaml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ info:
2828
## Getting Started
2929
3030
If you're new to REST APIs then be sure to read our [introduction to
31-
REST](https://www.shipengine.com/docs/rest/) to understand the basics.
31+
REST](https://www.shipengine.com/docs/rest/) to understand the basics.
3232
Learn how to [authenticate yourself to
3333
ShipEngine](https://www.shipengine.com/docs/auth/), and then use our
3434
[sandbox environment](https://www.shipengine.com/docs/sandbox/) to kick the
@@ -330,7 +330,7 @@ paths:
330330
text_only:
331331
description: >
332332
This response shows that the address-recognition API was
333-
able to recognize all the address entities in the text.
333+
able to recognize all the address entities in the text.
334334
Notice that the `country_code` is not populated and the
335335
`address_residential_indicator` is "unknown", since neither
336336
of these fields was included in the text.
@@ -409,7 +409,7 @@ paths:
409409
some_known_fields:
410410
description: >
411411
This response is shows that the address-recognition API was
412-
able to recognize all the address entities in the text.
412+
able to recognize all the address entities in the text.
413413
Notice that the `country_code` and
414414
`address_residential_indicator` fields are populated with
415415
the values that were provided in the request.
@@ -3379,7 +3379,7 @@ paths:
33793379
text_only:
33803380
description: >
33813381
This response shows that the shipment-recognition API was
3382-
able to recognize all the shipping entities in the text.
3382+
able to recognize all the shipping entities in the text.
33833383
Notice that the `ship_from` field is not populated, since it
33843384
wasn't included in the request or in the parsed text.
33853385
value:
@@ -3572,7 +3572,7 @@ paths:
35723572
some_known_fields:
35733573
description: >
35743574
This response is shows that the shipment-recognition API was
3575-
able to recognize all the shipping entities in the text.
3575+
able to recognize all the shipping entities in the text.
35763576
Notice that the `ship_from` and `service_code` fields are
35773577
populated with the values that were provided in the request.
35783578
value:
@@ -4806,7 +4806,7 @@ components:
48064806
- image/jpeg
48074807
description: The image type
48084808
description: |
4809-
The file type of the image.
4809+
The file type of the image.
48104810
image_data:
48114811
type: string
48124812
example: >-
@@ -4988,7 +4988,7 @@ components:
49884988
- image/jpeg
49894989
description: The image type
49904990
description: |
4991-
The file type of the image.
4991+
The file type of the image.
49924992
image_data:
49934993
type: string
49944994
example: >-
@@ -5746,7 +5746,7 @@ components:
57465746
- A6
57475747
description: >
57485748
The available layouts (sizes) in which shipping labels can be
5749-
downloaded. The label format determines which sizes are supported.
5749+
downloaded. The label format determines which sizes are supported.
57505750
`4x6` is supported for all label formats, whereas `letter` (8.5" x 11")
57515751
is only supported for `pdf` format.
57525752
label_format:
@@ -5757,7 +5757,7 @@ components:
57575757
- png
57585758
- zpl
57595759
description: >
5760-
The possible file formats in which shipping labels can be downloaded.
5760+
The possible file formats in which shipping labels can be downloaded.
57615761
We recommend `pdf` format because it is supported by all carriers,
57625762
whereas some carriers do not support the `png` or `zpl` formats.
57635763
@@ -6264,7 +6264,7 @@ components:
62646264
description: >
62656265
A [package
62666266
type](https://www.shipengine.com/docs/reference/list-carrier-packages/),
6267-
such as `thick_envelope`, `small_flat_rate_box`, `large_package`, etc.
6267+
such as `thick_envelope`, `small_flat_rate_box`, `large_package`, etc.
62686268
Use the code `package` for custom or unknown package types.
62696269
dimensions:
62706270
title: dimensions
@@ -8173,7 +8173,7 @@ components:
81738173
- $ref: '#/components/schemas/date'
81748174
readOnly: true
81758175
description: >
8176-
The date that the package was (or will be) shipped.
8176+
The date that the package was (or will be) shipped.
81778177
ShipEngine will take the day of week into consideration. For
81788178
example, if the carrier does not operate on Sundays, then a
81798179
package that would have shipped on Sunday will ship on Monday
@@ -8429,7 +8429,7 @@ components:
84298429
The label's package(s).
84308430
84318431
8432-
> **Note:** Some carriers only allow one package per label.
8432+
> **Note:** Some carriers only allow one package per label.
84338433
If you attempt to create a multi-package label for a carrier
84348434
that doesn't allow it, an error will be returned.
84358435
items:
@@ -8686,7 +8686,7 @@ components:
86868686
description: >
86878687
The shipment's origin address. If you frequently ship from the same
86888688
location, consider [creating a
8689-
warehouse](https://www.shipengine.com/docs/reference/create-warehouse/).
8689+
warehouse](https://www.shipengine.com/docs/reference/create-warehouse/).
86908690
Then you can simply specify the `warehouse_id` rather than the
86918691
complete address each time.
86928692
warehouse_id:
@@ -9129,7 +9129,7 @@ components:
91299129
title: invoice_additional_details
91309130
type: object
91319131
description: |
9132-
The additional information to put on commercial invoice
9132+
The additional information to put on commercial invoice
91339133
properties:
91349134
freight_charge:
91359135
allOf:
@@ -9366,7 +9366,7 @@ components:
93669366
default: null
93679367
description: >
93689368
This field is used to [bill shipping costs to a third
9369-
party](https://www.shipengine.com/docs/shipping/bill-to-third-party/).
9369+
party](https://www.shipengine.com/docs/shipping/bill-to-third-party/).
93709370
This field must be used in conjunction with the
93719371
`bill_to_country_code`, `bill_to_party`, and `bill_to_postal_code`
93729372
fields.
@@ -9443,7 +9443,7 @@ components:
94439443
default: null
94449444
description: >
94459445
Whether to use [UPS Ground Freight
9446-
pricing](https://www.shipengine.com/docs/shipping/ups-ground-freight/).
9446+
pricing](https://www.shipengine.com/docs/shipping/ups-ground-freight/).
94479447
If enabled, then a `freight_class` must also be specified.
94489448
freight_class:
94499449
type: string
@@ -10566,7 +10566,7 @@ components:
1056610566
description: >
1056710567
The shipment's origin address. If you frequently ship from the same
1056810568
location, consider [creating a
10569-
warehouse](https://www.shipengine.com/docs/reference/create-warehouse/).
10569+
warehouse](https://www.shipengine.com/docs/reference/create-warehouse/).
1057010570
Then you can simply specify the `warehouse_id` rather than the
1057110571
complete address each time.
1057210572
warehouse_id:
@@ -10684,7 +10684,7 @@ components:
1068410684
title: tag
1068510685
type: object
1068610686
description: >
10687-
Tags are arbitrary strings that you can use to categorize shipments.
10687+
Tags are arbitrary strings that you can use to categorize shipments.
1068810688
For example, you may want to use tags to distinguish between domestic
1068910689
and international shipments, or between insured and uninsured
1069010690
shipments. Or maybe you want to create a tag for each of your customers
@@ -10919,7 +10919,7 @@ components:
1091910919
type: object
1092010920
description: >
1092110921
Additional information some carriers may provide by which to identify a
10922-
given label in their system.
10922+
given label in their system.
1092310923
additionalProperties: false
1092410924
properties:
1092510925
type:
@@ -11294,7 +11294,7 @@ components:
1129411294
description: >
1129511295
The shipment's origin address. If you frequently ship from the same
1129611296
location, consider [creating a
11297-
warehouse](https://www.shipengine.com/docs/reference/create-warehouse/).
11297+
warehouse](https://www.shipengine.com/docs/reference/create-warehouse/).
1129811298
Then you can simply specify the `warehouse_id` rather than the
1129911299
complete address each time.
1130011300
warehouse_id:
@@ -12197,7 +12197,7 @@ components:
1219712197
type: object
1219812198
description: >
1219912199
Used for combining packages into one scannable form that a carrier can
12200-
use when picking up a large
12200+
use when picking up a large
1220112201
1220212202
number of shipments
1220312203
additionalProperties: false
@@ -13093,6 +13093,7 @@ components:
1309313093
delivery_days:
1309413094
type: integer
1309513095
format: int32
13096+
nullable: true
1309613097
readOnly: true
1309713098
minimum: 1
1309813099
example: 5
@@ -13106,6 +13107,7 @@ components:
1310613107
readOnly: true
1310713108
description: Indicates if the rate is guaranteed.
1310813109
estimated_delivery_date:
13110+
nullable: true
1310913111
readOnly: true
1311013112
allOf:
1311113113
- $ref: '#/components/schemas/date'
@@ -13503,6 +13505,7 @@ components:
1350313505
delivery_days:
1350413506
type: integer
1350513507
format: int32
13508+
nullable: true
1350613509
readOnly: true
1350713510
minimum: 1
1350813511
example: 5
@@ -13516,6 +13519,7 @@ components:
1351613519
readOnly: true
1351713520
description: Indicates if the rate is guaranteed.
1351813521
estimated_delivery_date:
13522+
nullable: true
1351913523
readOnly: true
1352013524
allOf:
1352113525
- $ref: '#/components/schemas/date'
@@ -14427,7 +14431,7 @@ components:
1442714431
minLength: 1
1442814432
example: Fragile
1442914433
description: >
14430-
Tags are arbitrary strings that you can use to categorize shipments.
14434+
Tags are arbitrary strings that you can use to categorize shipments.
1443114435
For example, you may want to use tags to distinguish between domestic
1443214436
and international shipments, or between insured and uninsured
1443314437
shipments. Or maybe you want to create a tag for each of your customers
@@ -14655,7 +14659,7 @@ components:
1465514659
tags:
1465614660
- name: account
1465714661
description: |
14658-
For additional information about the ShipEngine account.
14662+
For additional information about the ShipEngine account.
1465914663
x-displayName: Account
1466014664
- name: addresses
1466114665
description: >
@@ -14686,7 +14690,7 @@ tags:
1468614690
description: >
1468714691
A carrier account is a connection to a shipping carrier that allows you to
1468814692
create labels, track packages, and more. You can connect your own carrier
14689-
accounts to ShipEngine, or use one of our built-in carrier accounts.
14693+
accounts to ShipEngine, or use one of our built-in carrier accounts.
1469014694
[Learn more about carrier accounts
1469114695
here.](https://www.shipengine.com/docs/carriers/setup/)
1469214696
x-displayName: Carrier Accounts

0 commit comments

Comments
 (0)