Transfer
Reject inbound diamonds.
Diamonds must not have been ACCEPTED in order to be rejected.
ID of the shipment assigned by Tracr
5l0o4eixnuubtg51fouym73rnPattern: ^[a-z\d]{20,98}$An object which contains only a diamond_id field.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Successful Response
Returned by transfer/in/reject for each diamond.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Represents the result of a transfer-in-reject operation.
Validation Error
POST /transfer/in/{shipment_id}/reject HTTP/1.1
Host: api.<id>.tracr.network
Content-Type: application/json
Accept: */*
Content-Length: 44
[
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums"
}
][
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums",
"status": "success"
}
]Cancel outbound diamonds preventing them from being accepted.
User initiated by the sender.
Diamonds must not have been ACCEPTED in order to be cancelled.
ID of the shipment assigned by Tracr
5l0o4eixnuubtg51fouym73rnPattern: ^[a-z\d]{20,98}$An object which contains only a diamond_id field.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Successful Response
Returned by transfer/out/cancel for each diamond.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Represents the result of a transfer-out-cancel operation.
Validation Error
POST /transfer/out/{shipment_id}/cancel HTTP/1.1
Host: api.<id>.tracr.network
Content-Type: application/json
Accept: */*
Content-Length: 44
[
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums"
}
][
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums",
"status": "success"
}
]Accept an inbound shipment of diamonds.
ID of the shipment assigned by Tracr
5l0o4eixnuubtg51fouym73rnPattern: ^[a-z\d]{20,98}$A list of diamonds to accept for transfer.
Successful Response
Aggregated results of accepting diamonds for transfer.
Validation Error
POST /v2/transfer/in/{shipment_id}/accept HTTP/1.1
Host: api.<id>.tracr.network
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"diamonds": [
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums"
}
]
}{
"results": [
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums",
"status": "success"
}
]
}Accept all the diamonds in the inbound shipment.
ID of the shipment assigned by Tracr
5l0o4eixnuubtg51fouym73rnPattern: ^[a-z\d]{20,98}$Successful Response
Aggregated results of accepting diamonds for transfer.
Validation Error
POST /v2/transfer/in/{shipment_id}/accept/all HTTP/1.1
Host: api.<id>.tracr.network
Accept: */*
{
"results": [
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums",
"status": "success"
}
]
}Reject inbound diamonds.
Diamonds must not have been ACCEPTED in order to be rejected.
ID of the shipment assigned by Tracr
5l0o4eixnuubtg51fouym73rnPattern: ^[a-z\d]{20,98}$Successful Response
Returned by transfer/in/reject for each diamond.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Represents the result of a transfer-in-reject operation.
Validation Error
POST /v2/transfer/in/{shipment_id}/reject/all HTTP/1.1
Host: api.<id>.tracr.network
Accept: */*
[
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums",
"status": "success"
}
]Create a new outbound shipment for a given group of rough diamonds.
V2 of TransferOutStartRequest model, with shipment_type
^https://api\..+\.tracr\.com$The different diamond lifecycle states that can be transferred (unique per shipment).
Successful Response
A response to a V2 transfer/out/start request.
Returned if:
- Sender and receiver are the same participant.
- Outbound shipment with the same name already exists.
- Any of the diamond IDs passed in the request does not exist in the database.
- Any of the diamond IDs passed in the request already belong to another shipment in the database.
- Any of the diamond IDs passed in the request are locked.
- Any of the diamond IDs passed is for a diamond which is not ROUGH.
- Any of the diamond IDs passed is for a POLISHED diamond which has an in-flight data request.
- Any of the diamond IDs passed is for a diamond which is not HELD.
- Any of the diamond IDs passed is for a diamond which has a parent.
- Any of the diamond IDs passed is for a diamond which is archived.
Returned if any of the specified diamonds are being updated as part of another process.
Validation Error
POST /v2/transfer/out/start HTTP/1.1
Host: api.<id>.tracr.network
Content-Type: application/json
Accept: */*
Content-Length: 122
{
"diamonds": [
{
"diamond_id": "text"
}
],
"receiver": "text",
"receiver_id": "text",
"shipment_name": "text",
"shipment_type": "rough"
}{
"diamonds": [
{
"diamond_id": "text",
"status": "diamond_does_not_exist"
}
],
"shipment_id": "e1mv3nn4n10kd1lw6mde6sums",
"shipment_name": "text",
"message": "text",
"status": "invalid"
}Cancel outbound diamonds preventing them from being accepted.
User initiated by the sender.
Diamonds must not have been ACCEPTED in order to be cancelled.
ID of the shipment assigned by Tracr
5l0o4eixnuubtg51fouym73rnPattern: ^[a-z\d]{20,98}$Successful Response
Returned by transfer/out/cancel for each diamond.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Represents the result of a transfer-out-cancel operation.
Validation Error
POST /v2/transfer/out/{shipment_id}/cancel/all HTTP/1.1
Host: api.<id>.tracr.network
Accept: */*
[
{
"diamond_id": "e1mv3nn4n10kd1lw6mde6sums",
"status": "success"
}
]Last updated