# Ship via Code APIs

Ship Via Code APIs provide capabilities to create and manage reusable shipping configurations that combine carrier, carrier account, parcel type, service, and special services into a single identifier. <br/>These APIs help simplify shipment creation by allowing you to reference a predefined ship via code instead of repeatedly providing the same carrier configuration details in each request. <br/>The APIs support the following services:
- Create a ship via code with predefined carrier configuration
- Retrieve all ship via codes or a specific code by identifier
- Update an existing ship via code configuration
- Delete a ship via code
<br/>Use these APIs to standardize shipping configurations, reduce repetitive input, and streamline shipment workflows when using the Create Shipment API.


Version: 1.0.0
License: PB Software License Agreement

## Servers

```
https://api-dev.sendpro360.pitneycloud.com/shipping
```

```
https://api-qa.sendpro360.pitneycloud.com/shipping
```

Sandbox Server
```
https://api-sandbox.sendpro360.pitneybowes.com/shipping
```

Production Server (uses live data)
```
https://api.sendpro360.pitneybowes.com/shipping
```

Sandbox Server for Canada
```
https://api-ppd.shipping360.pitneybowes.com/ca/shipping
```

Production Server for Canada
```
https://api.shipping360.pitneybowes.com/ca/shipping
```

## Security

### bearerAuth

Type: http
Scheme: bearer

## Download OpenAPI description

[Ship via Code APIs](https://docs.sendpro360.pitneycloud.com/_bundle/openapi/shipviacode.yaml)

## Ship Via Code

APIs Provide services to manage reusable ship via codes that simplify shipment creation by encapsulating carrier, service, and parcel configuration.

### Create Ship Via Code

 - [POST /api/v1/shipviacode](https://docs.sendpro360.pitneycloud.com/openapi/shipviacode/ship-via-code/createshipviacode.md): Create a ship via code that represents a specific combination of carrier, carrier account, 
parcel type, service, and special services.  
This ship via code can then be used in the Create Shipment API, so users don't need to manually 
re-enter these parameters each time.  
Once generated, the code can be reused across multiple shipments to reduce effort in shipping requests.

### Get all Ship Via Codes

 - [GET /api/v1/shipviacode](https://docs.sendpro360.pitneycloud.com/openapi/shipviacode/ship-via-code/getshipviacodes.md): Returns a list of ship via codes.

### Get Ship via Code by Code

 - [GET /api/v1/shipviacode/{code}](https://docs.sendpro360.pitneycloud.com/openapi/shipviacode/ship-via-code/getshipviacodebycode.md): This operation retrieves the details of a specific ship via code mapping by its unique code.  
A ship via code represents a saved configuration of carrier, carrier account, parcel, service, and special services.

### Update Ship Via Code

 - [PUT /api/v1/shipviacode/{code}](https://docs.sendpro360.pitneycloud.com/openapi/shipviacode/ship-via-code/updateshipviacode.md): This operation Updates the configuration for the specified ship via code.  
The ship via code  itself cannot be changed. If provided in the body, it will be ignored.

### Delete Ship Via Code

 - [DELETE /api/v1/shipviacode/{code}](https://docs.sendpro360.pitneycloud.com/openapi/shipviacode/ship-via-code/deleteshipviacode.md): This operation deletes the ship via code mapping by its unique code.

