Created
June 26, 2014 06:15
-
-
Save jcleblanc/54afcf22e9f0c12120a5 to your computer and use it in GitHub Desktop.
paypal_rest_subscriptions_user_agreement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v POST https://api.sandbox.paypal.com/v1/payments/billing-agreements | |
-H 'Content-Type:application/json' \ | |
-H 'Authorization: Bearer {accessToken}' \ | |
-d '{ | |
"name": "Main Subscription", | |
"description": "Fruit of the Month Subscription", | |
"start_date": "2015-02-19T00:37:04Z", | |
"plan": { | |
"id": "P-0NJ10521L3680291SOAQIVTQ" | |
}, | |
"payer": { | |
"payment_method": "paypal" | |
}, | |
"shipping_address": { | |
"line1": "My Business", | |
"line2": "1665 Biscayne rd", | |
"city": "Miami", | |
"state": "FL", | |
"postal_code": "33141", | |
"country_code": "US" | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment