The body of a POST request to the /labels endpoint should be a JSON object with the following fields:
“shipper”: The shipper of the package, a JSON object with fields “company_name”, “address_1”, “address_2”, “city”, “state_or_province_code”, “postal_code”, “country_code”
“recipient”: The recipient of the package, a JSON object with fields “company_name”, “address_1”, “address_2”, “city”, “state_or_province_code”, “postal_code”, “country_code”
“package_type”: The type of package, a string, supported package type for fedex are FEDEX_BOX, FEDEX_PAK, FEDEX_TUBE, FEDEX_ENVELOPE
“weight”: The weight of the package, a float
“dimensions”: The dimensions of the package, a JSON object with fields “length”, “width”, “height”, all fields are in inches
“service_type”: The type of service, a string, supported service type for fedex are FEDEX_GROUND, FEDEX_EXPRESS_SAVER, FEDEX_2_DAY, FEDEX_PRIORITY_OVERNIGHT, FEDEX_STANDARD_OVERNIGHT, FEDEX_FIRST_OVERNIGHT
“payment_type”: The type of payment, a string, supported payment type for fedex are SENDER, RECIPIENT, THIRD_PARTY
“third_party_bill”: A JSON object, only used when payment_type is THIRD_PARTY, that contains the third party's billing information: “account_number”, “company_name”, “address_1”, “address_2”, “city”, “state_or_province_code”, “postal_code”, “country_code”
“LabelSpecification”: A JSON object contains the following fields: “image_type”: bar_3of9, “label_stock_type”: PAPER_Letter, “format”: EPL2, “print_color”: BLACK_AND_WHITE
A successful response from the POST request will be a JSON object with a “shipping_label” field containing a base64 encoded label and a “label_url” field containing the url from where the label can be download.
GET /labels/:id - Retrieves a shipping label by id
Returns the label information for the given id, a successful response will be a JSON object with a “shipping_label” field containing a base64 encoded label and a “label_url” field containing the url from where the label can be download.
DELETE /labels/:id - Deletes a shipping label by id
A successful response will be a JSON object with a “status” field containing “OK”.
Please note that the above information is based on my understanding and research about FedEx API, it is advisable to check the FedEx API documentation for the specific fields, data types and API endpoint for creating label.